[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / debug-info-fwd-ref.cpp
blob219e7963797dc5f9caf2d6a83b2b2916b165dc75
1 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple x86_64-apple-darwin %s -o - | FileCheck %s
3 struct baz {
4 int h;
5 baz(int a) : h(a) {}
6 };
8 struct bar {
9 baz b;
10 baz& b_ref;
11 bar(int x) : b(x), b_ref(b) {}
14 int main(int argc, char** argv) {
15 bar myBar(1);
16 return 0;
19 // Make sure we have two DW_TAG_structure_types for baz and bar and no forward
20 // references.
21 // CHECK-NOT: DIFlagFwdDecl
22 // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "bar"
23 // CHECK-NOT: DIFlagFwdDecl
24 // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "baz"
25 // CHECK-NOT: DIFlagFwdDecl