2013-12-14 06:43:52 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium -std=c++11 -g %s -o - | FileCheck %s
|
2013-08-30 07:19:58 +08:00
|
|
|
// CHECK: metadata !"_ZTS1A"} ; [ DW_TAG_class_type ] [A]
|
2013-08-30 04:48:48 +08:00
|
|
|
// CHECK: metadata !"_ZN1A3fooEiS_3$_0", {{.*}} [protected]
|
2013-10-05 09:43:22 +08:00
|
|
|
// CHECK: ![[THISTYPE:[0-9]+]] = {{.*}} ; [ DW_TAG_pointer_type ] {{.*}} [artificial] [from _ZTS1A]
|
2013-01-07 13:55:03 +08:00
|
|
|
// CHECK: DW_TAG_ptr_to_member_type
|
2013-01-20 03:20:56 +08:00
|
|
|
// CHECK: {{.*}}metadata ![[MEMFUNTYPE:[0-9]+]], metadata !{{.*}}} ; [ DW_TAG_ptr_to_member_type ] {{.*}} [from ]
|
2013-08-27 07:19:37 +08:00
|
|
|
// CHECK: ![[MEMFUNTYPE]] = {{.*}}metadata ![[MEMFUNARGS:[0-9]+]], i32 0, null, null, null} ; [ DW_TAG_subroutine_type ] {{.*}} [from ]
|
2013-01-20 03:20:56 +08:00
|
|
|
// CHECK: ![[MEMFUNARGS]] = {{.*}}, metadata ![[THISTYPE]],
|
2013-01-05 13:58:35 +08:00
|
|
|
// CHECK: ""{{.*}}DW_TAG_arg_variable
|
2013-01-06 04:03:07 +08:00
|
|
|
// CHECK: ""{{.*}}DW_TAG_arg_variable
|
|
|
|
// CHECK: ""{{.*}}DW_TAG_arg_variable
|
|
|
|
union {
|
|
|
|
int a;
|
|
|
|
float b;
|
|
|
|
} u;
|
|
|
|
|
2010-09-30 05:46:16 +08:00
|
|
|
class A {
|
|
|
|
protected:
|
2013-01-06 04:03:07 +08:00
|
|
|
void foo(int, A, decltype(u));
|
2010-09-30 05:46:16 +08:00
|
|
|
};
|
2013-01-05 13:58:35 +08:00
|
|
|
|
2013-01-06 04:03:07 +08:00
|
|
|
void A::foo(int, A, decltype(u)) {
|
2013-01-05 13:58:35 +08:00
|
|
|
}
|
|
|
|
|
2010-09-30 05:46:16 +08:00
|
|
|
A a;
|
2013-01-07 13:55:03 +08:00
|
|
|
|
|
|
|
int A::*x = 0;
|
|
|
|
int (A::*y)(int) = 0;
|