1 // RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -g %s -o - | FileCheck %s 2 3 struct A 4 { 5 // CHECK-DAG: ", i32 [[@LINE+1]], metadata ![[ATY:[0-9]+]]{{.*}}[ DW_TAG_subprogram ]{{.*}}[a] 6 void a(int c, ...) {} 7 // CHECK: ![[ATY]] ={{.*}} metadata ![[AARGS:[0-9]+]], i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] 8 // CHECK: ![[AARGS]] = {{.*}} metadata ![[UNSPEC:[0-9]+]]} 9 // CHECK: ![[UNSPEC]] = {{.*}} [ DW_TAG_unspecified_parameters ] 10 }; 11 12 // CHECK: ", i32 [[@LINE+1]], metadata ![[BTY:[0-9]+]]{{.*}}[ DW_TAG_subprogram ]{{.*}}[b] 13 void b(int c, ...) { 14 // CHECK: ![[BTY]] ={{.*}} metadata ![[BARGS:[0-9]+]], i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] 15 // CHECK: ![[BARGS]] = {{.*}} metadata ![[UNSPEC:[0-9]+]]} 16 17 A a; 18 19 // CHECK: metadata ![[PST:[0-9]+]], i32 0, i32 0} ; [ DW_TAG_auto_variable ] [fptr] [line [[@LINE+1]]] 20 void (*fptr)(int, ...) = b; 21 // CHECK: ![[PST]] ={{.*}} metadata ![[BTY]]} ; [ DW_TAG_pointer_type ] 22 } 23