summaryrefslogtreecommitdiffstats
path: root/llvm/test/C++Frontend/2006-09-27-Debug-Protection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/C++Frontend/2006-09-27-Debug-Protection.cpp')
-rw-r--r--llvm/test/C++Frontend/2006-09-27-Debug-Protection.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/C++Frontend/2006-09-27-Debug-Protection.cpp b/llvm/test/C++Frontend/2006-09-27-Debug-Protection.cpp
new file mode 100644
index 00000000000..87bc0d595ad
--- /dev/null
+++ b/llvm/test/C++Frontend/2006-09-27-Debug-Protection.cpp
@@ -0,0 +1,14 @@
+// XFAIL: llvmgcc3
+// RUN: %llvmgxx -O0 -emit-llvm -S -g -o - %s | grep 'i32 1,' &&
+// RUN: %llvmgxx -O0 -emit-llvm -S -g -o - %s | grep 'i32 2,'
+
+class A {
+public:
+ int x;
+protected:
+ int y;
+private:
+ int z;
+};
+
+A a;
OpenPOWER on IntegriCloud