Files
clang-p2996/clang/test/CodeGenCXX/field-access-debug-info.cpp
Adrian Prantl 21361fb308 Debug info: Only emit C++ accessibility specifiers when they are diverging
from the default for the containing type.

rdar://problem/18154959

llvm-svn: 216800
2014-08-29 22:44:27 +00:00

14 lines
232 B
C++

// RUN: %clang -g -S -emit-llvm %s -o - | FileCheck %s
// CHECK: [ DW_TAG_member ] [p] [{{[^]]*}}] [public] [from int]
// CHECK: [ DW_TAG_member ] [pr] [{{[^]]*}}] [from int]
class A {
public:
int p;
private:
int pr;
};
A a;