1 // RUN: %clang -emit-llvm -g -S %s -o - | FileCheck %s 2 struct foo; 3 void func(foo *f) { // CHECK: DW_TAG_structure_type 4 } 5 class bar; 6 void func(bar *f) { // CHECK: DW_TAG_class_type 7 } 8 union baz; 9 void func(baz *f) { // CHECK: DW_TAG_union_type 10 } 11 class B { // CHECK: DW_TAG_class_type 12 public: 13 virtual ~B(); 14 // CHECK: metadata !"_vptr$B", {{.*}}, i32 64, metadata !{{.*}}} ; [ DW_TAG_member ] 15 }; 16 struct A { // CHECK: DW_TAG_structure_type 17 int one; 18 static const int HdrSize = 52; // CHECK: HdrSize 19 int two; 20 A() { 21 int x = 1; 22 } 23 }; 24 25 26 int main() { 27 A a; 28 B b; 29 } 30