From f3ed1bc8ac446cf5f92cb88003b3b8f3b2930bcc Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 20 Jan 2012 22:10:18 +0000 Subject: Testcase for PR11345. llvm-svn: 148585 --- clang/test/CodeGenCXX/debug-info-context.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 clang/test/CodeGenCXX/debug-info-context.cpp (limited to 'clang/test/CodeGenCXX') diff --git a/clang/test/CodeGenCXX/debug-info-context.cpp b/clang/test/CodeGenCXX/debug-info-context.cpp new file mode 100644 index 00000000000..d6d44a158c3 --- /dev/null +++ b/clang/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 -- cgit v1.2.3