1*0a6a1f1dSLionel Sambuc // FIXME: Check IR rather than asm, then triple is not needed. 2*0a6a1f1dSLionel Sambuc // RUN: %clang -Xclang -triple=%itanium_abi_triple -S -g -fverbose-asm %s -o - | FileCheck %s 3f4a2713aSLionel Sambuc // Radar 8461032 4f4a2713aSLionel Sambuc // CHECK: DW_AT_location 5f4a2713aSLionel Sambuc // CHECK-NEXT: byte 145 6f4a2713aSLionel Sambuc 7f4a2713aSLionel Sambuc // 145 is DW_OP_fbreg 8f4a2713aSLionel Sambuc struct s { 9f4a2713aSLionel Sambuc int a; 10f4a2713aSLionel Sambuc struct s *next; 11f4a2713aSLionel Sambuc }; 12f4a2713aSLionel Sambuc foo(struct s * s)13f4a2713aSLionel Sambucint foo(struct s *s) { 14f4a2713aSLionel Sambuc switch (s->a) { 15f4a2713aSLionel Sambuc case 1: 16f4a2713aSLionel Sambuc case 2: { 17f4a2713aSLionel Sambuc struct s *sp = s->next; 18f4a2713aSLionel Sambuc } 19f4a2713aSLionel Sambuc break; 20f4a2713aSLionel Sambuc } 21f4a2713aSLionel Sambuc return 1; 22f4a2713aSLionel Sambuc } 23