Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame^] | 1 | // FIXME: Check IR rather than asm, then triple is not needed. |
2 | // RUN: %clang -Xclang -triple=%itanium_abi_triple -S -g -fverbose-asm %s -o - | FileCheck %s | ||||
Devang Patel | c1cabfb | 2010-09-22 21:13:48 +0000 | [diff] [blame] | 3 | // Radar 8461032 |
4 | // CHECK: DW_AT_location | ||||
5 | // CHECK-NEXT: byte 145 | ||||
6 | |||||
7 | // 145 is DW_OP_fbreg | ||||
8 | struct s { | ||||
9 | int a; | ||||
10 | struct s *next; | ||||
11 | }; | ||||
12 | |||||
13 | int foo(struct s *s) { | ||||
14 | switch (s->a) { | ||||
15 | case 1: | ||||
16 | case 2: { | ||||
17 | struct s *sp = s->next; | ||||
18 | } | ||||
19 | break; | ||||
20 | } | ||||
21 | return 1; | ||||
22 | } |