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
3// 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}
23