diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-03-20 05:12:06 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-03-20 05:12:06 +0000 |
commit | c4b580b59351882b0bfc0a94e0b1a1d0e32e3451 (patch) | |
tree | 29cc889485134da1c1cb4e3689d19e6e2da33c3c | |
parent | 970e441671be130c9a12b7eda2a0b795008812a5 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177485 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGenCXX/debug-info-namespace.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/test/CodeGenCXX/debug-info-namespace.cpp b/test/CodeGenCXX/debug-info-namespace.cpp index 27f5eae978..b29f2703f3 100644 --- a/test/CodeGenCXX/debug-info-namespace.cpp +++ b/test/CodeGenCXX/debug-info-namespace.cpp @@ -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] |