summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/debug-info-namespace.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-10-27 23:23:58 +0000
committerDevang Patel <dpatel@apple.com>2010-10-27 23:23:58 +0000
commit4bc48877db95b2afd6207fdb54ce271169c994f9 (patch)
tree18148eaba15a3fa6c7d659d0d2e837fc317eb042 /test/CodeGenCXX/debug-info-namespace.cpp
parentb03a9287c287a62ad85e496cfd263a2c92efddbb (diff)
downloadclang-4bc48877db95b2afd6207fdb54ce271169c994f9.tar.gz
Fix context info for enums.
Radar 8595129 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/debug-info-namespace.cpp')
-rw-r--r--test/CodeGenCXX/debug-info-namespace.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGenCXX/debug-info-namespace.cpp b/test/CodeGenCXX/debug-info-namespace.cpp
new file mode 100644
index 0000000000..2e0a96d566
--- /dev/null
+++ b/test/CodeGenCXX/debug-info-namespace.cpp
@@ -0,0 +1,12 @@
+// RUN: %clang -g -S %s -o - | FileCheck %s
+
+// CHECK: TAG_namespace
+namespace A {
+ enum numbers {
+ ZERO,
+ ONE
+ };
+}
+
+using namespace A;
+numbers n;