blob: 41da7d382cb557567c09e9946ccc2d753f111c28 [file] [log] [blame]
Stephen Hines651f13c2014-04-23 16:59:28 -07001// 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 Patelc1cabfb2010-09-22 21:13:48 +00003// Radar 8461032
4// CHECK: DW_AT_location
5// CHECK-NEXT: byte 145
6
7// 145 is DW_OP_fbreg
8struct s {
9 int a;
10 struct s *next;
11};
12
13int 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}