blob: 12edb0898274ab2e312867a2ac91eaa39a6e1d30 [file] [log] [blame]
Devang Patelb4a9aec2010-09-22 21:13:48 +00001// RUN: %clang -S -g -fverbose-asm %s -o - | FileCheck %s
2// Radar 8461032
3// CHECK: DW_AT_location
4// CHECK-NEXT: byte 145
5
6// 145 is DW_OP_fbreg
7struct s {
8 int a;
9 struct s *next;
10};
11
12int foo(struct s *s) {
13 switch (s->a) {
14 case 1:
15 case 2: {
16 struct s *sp = s->next;
17 }
18 break;
19 }
20 return 1;
21}