aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/debug-info-context.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-01-20 22:10:18 +0000
committerEric Christopher <echristo@apple.com>2012-01-20 22:10:18 +0000
commitc4f4d5d570f294d011e276dc18d6d840e847958a (patch)
treee671ed06f70c5be3f8284eb7330d55252a170eb9 /test/CodeGenCXX/debug-info-context.cpp
parent4ddca8ab795be2bb239a80b48a57d09f54dc07ba (diff)
Testcase for PR11345.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148585 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/debug-info-context.cpp')
-rw-r--r--test/CodeGenCXX/debug-info-context.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGenCXX/debug-info-context.cpp b/test/CodeGenCXX/debug-info-context.cpp
new file mode 100644
index 0000000000..d6d44a158c
--- /dev/null
+++ b/test/CodeGenCXX/debug-info-context.cpp
@@ -0,0 +1,17 @@
+// RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin %s -o - | FileCheck %s
+// PR11345
+
+class locale {
+private:
+ void _M_add_reference() const throw() {
+ }
+};
+class ios_base {
+ locale _M_ios_locale;
+public:
+ class Init {
+ };
+};
+static ios_base::Init __ioinit;
+
+// CHECK-NOT: _M_ios_locale