[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / debug-info-artificial-arg.cpp
bloba0cf131f83e15c9750165274cd7da9b4387112ec
1 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple x86_64-apple-darwin %s -o - | FileCheck %s
3 template<class X> class B {
4 public:
5 explicit B(X* p = 0);
6 };
8 class A
10 public:
11 A(int value) : m_a_value(value) {};
12 A(int value, A* client_A) : m_a_value (value), m_client_A (client_A) {}
14 virtual ~A() {}
16 private:
17 int m_a_value;
18 B<A> m_client_A;
21 int main(int argc, char **argv) {
22 A reallyA (500);
25 // CHECK: ![[CLASSTYPE:.*]] = distinct !DICompositeType(tag: DW_TAG_class_type, name: "A",
26 // CHECK-SAME: identifier: "_ZTS1A"
27 // CHECK: ![[ARTARG:.*]] = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: ![[CLASSTYPE]],{{.*}} DIFlagArtificial
28 // CHECK: !DISubprogram(name: "A", scope: ![[CLASSTYPE]]
29 // CHECK-SAME: line: 12
30 // CHECK-SAME: DIFlagPublic
31 // CHECK: !DISubroutineType(types: [[FUNCTYPE:![0-9]*]])
32 // CHECK: [[FUNCTYPE]] = !{null, ![[ARTARG]], !{{.*}}, !{{.*}}}