2013-08-02 04:57:40 +08:00
|
|
|
// RUN: %clang -flimit-debug-info -emit-llvm -g -S %s -o - | FileCheck %s
|
2011-02-23 04:55:26 +08:00
|
|
|
|
2013-08-02 04:57:40 +08:00
|
|
|
// CHECK: ; [ DW_TAG_class_type ] [A] {{.*}} [def]
|
2011-02-23 04:55:26 +08:00
|
|
|
class A {
|
|
|
|
public:
|
|
|
|
int z;
|
|
|
|
};
|
|
|
|
|
2012-02-17 06:45:48 +08:00
|
|
|
A *foo (A* x) {
|
|
|
|
A *a = new A(*x);
|
2011-02-23 04:55:26 +08:00
|
|
|
return a;
|
|
|
|
}
|
|
|
|
|
2014-03-15 06:07:27 +08:00
|
|
|
// CHECK: ; [ DW_TAG_class_type ] [B] {{.*}} [def]
|
2013-05-16 08:45:20 +08:00
|
|
|
|
|
|
|
class B {
|
|
|
|
public:
|
|
|
|
int y;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern int bar(B *b);
|
|
|
|
int baz(B *b) {
|
|
|
|
return bar(b);
|
|
|
|
}
|
|
|
|
|
2013-08-22 07:23:07 +08:00
|
|
|
|
|
|
|
// CHECK: ; [ DW_TAG_structure_type ] [C] {{.*}} [decl]
|
|
|
|
|
|
|
|
struct C {
|
|
|
|
};
|
|
|
|
|
|
|
|
C (*x)(C);
|