aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/field-access-debug-info.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/field-access-debug-info.cpp')
-rw-r--r--test/CodeGenCXX/field-access-debug-info.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGenCXX/field-access-debug-info.cpp b/test/CodeGenCXX/field-access-debug-info.cpp
new file mode 100644
index 000000000000..907fe04be57d
--- /dev/null
+++ b/test/CodeGenCXX/field-access-debug-info.cpp
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -g -S -masm-verbose -o %t %s
+// RUN: grep DW_AT_accessibility %t
+
+class A {
+public:
+ int p;
+private:
+ int pr;
+};
+
+A a;