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 struct A { // CHECK: DW_TAG_structure_type 12 int one; 13 static const int HdrSize = 52; // CHECK: HdrSize 14 int two; 15 A() { 16 int x = 1; 17 } 18 }; 19 class B { // CHECK: DW_TAG_class_type 20 }; 21 int main() { 22 A a; 23 B b; 24 } 25