From 1bee63f3250c33d88a8d6e12aa700b3ceeeef1ca Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 27 Oct 2010 23:23:58 +0000 Subject: Fix context info for enums. Radar 8595129 llvm-svn: 117507 --- clang/test/CodeGenCXX/debug-info-namespace.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 clang/test/CodeGenCXX/debug-info-namespace.cpp (limited to 'clang/test/CodeGenCXX/debug-info-namespace.cpp') diff --git a/clang/test/CodeGenCXX/debug-info-namespace.cpp b/clang/test/CodeGenCXX/debug-info-namespace.cpp new file mode 100644 index 00000000000..2e0a96d5666 --- /dev/null +++ b/clang/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; -- cgit v1.2.3