r177485 - Make front-end debug info namespace test frontend-only & more specific without overconstraining it
David Blaikie
dblaikie at gmail.com
Tue Mar 19 22:12:06 PDT 2013
Author: dblaikie
Date: Wed Mar 20 00:12:06 2013
New Revision: 177485
URL: http://llvm.org/viewvc/llvm-project?rev=177485&view=rev
Log:
Make front-end debug info namespace test frontend-only & more specific without overconstraining it
The backend portion of this test will be committed to LLVM's test suite.
Modified:
cfe/trunk/test/CodeGenCXX/debug-info-namespace.cpp
Modified: cfe/trunk/test/CodeGenCXX/debug-info-namespace.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/debug-info-namespace.cpp?rev=177485&r1=177484&r2=177485&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/debug-info-namespace.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/debug-info-namespace.cpp Wed Mar 20 00:12:06 2013
@@ -1,12 +1,9 @@
-// RUN: %clang -g -S -fverbose-asm %s -o - | FileCheck %s
+// RUN: %clang -g -S -emit-llvm %s -o - | FileCheck %s
-// CHECK: TAG_namespace
namespace A {
- enum numbers {
- ZERO,
- ONE
- };
+int i;
}
-using namespace A;
-numbers n;
+// CHECK: [[FILE:![0-9]*]] = {{.*}} ; [ DW_TAG_file_type ] [{{.*}}/test/CodeGenCXX/debug-info-namespace.cpp]
+// CHECK: [[VAR:![0-9]*]] = {{.*}}, metadata [[NS:![0-9]*]], metadata !"i", {{.*}} ; [ DW_TAG_variable ] [i]
+// CHECK: [[NS]] = {{.*}}, metadata [[FILE]], {{.*}} ; [ DW_TAG_namespace ] [A] [line 3]
More information about the cfe-commits
mailing list