2012-11-03 04:49:01 +08:00
|
|
|
// RUN: %clang -emit-llvm -g -S %s -o - | FileCheck %s
|
|
|
|
struct foo;
|
|
|
|
void func(foo *f) { // CHECK: DW_TAG_structure_type
|
|
|
|
}
|
|
|
|
class bar;
|
|
|
|
void func(bar *f) { // CHECK: DW_TAG_class_type
|
|
|
|
}
|
|
|
|
union baz;
|
|
|
|
void func(baz *f) { // CHECK: DW_TAG_union_type
|
|
|
|
}
|
2012-12-14 06:29:06 +08:00
|
|
|
class B { // CHECK: DW_TAG_class_type
|
|
|
|
public:
|
|
|
|
virtual ~B();
|
|
|
|
// CHECK: metadata !"_vptr$B", {{.*}}, i32 64, metadata !{{.*}}} ; [ DW_TAG_member ]
|
|
|
|
};
|
2012-11-03 07:40:00 +08:00
|
|
|
struct A { // CHECK: DW_TAG_structure_type
|
2010-08-12 08:02:44 +08:00
|
|
|
int one;
|
2012-11-03 04:49:01 +08:00
|
|
|
static const int HdrSize = 52; // CHECK: HdrSize
|
2010-08-12 08:02:44 +08:00
|
|
|
int two;
|
|
|
|
A() {
|
|
|
|
int x = 1;
|
|
|
|
}
|
|
|
|
};
|
2012-12-14 06:29:06 +08:00
|
|
|
|
|
|
|
|
2010-08-12 08:02:44 +08:00
|
|
|
int main() {
|
|
|
|
A a;
|
2012-11-03 04:49:01 +08:00
|
|
|
B b;
|
2010-08-12 08:02:44 +08:00
|
|
|
}
|