[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / field-access-debug-info.cpp
blob38c06f16ade34f04fb3a664f33f3f73e334d2b28
1 // RUN: %clang -g -S -emit-llvm %s -o - | FileCheck %s
3 // CHECK: !DIDerivedType(tag: DW_TAG_member, name: "p"
4 // CHECK-SAME: baseType: ![[INT:[0-9]+]]
5 // CHECK-SAME: DIFlagPublic
6 // CHECK: ![[INT]] = !DIBasicType(name: "int"
7 // CHECK: !DIDerivedType(tag: DW_TAG_member, name: "pr"
8 // CHECK-NOT: flags:
9 // CHECK-SAME: baseType: ![[INT]]
11 class A {
12 public:
13 int p;
14 private:
15 int pr;
18 A a;