]> granicus.if.org Git - clang/commitdiff
Fix debug-info-alias test to add CHECK to some lines that were missing it.
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 1 May 2014 18:13:24 +0000 (18:13 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 1 May 2014 18:13:24 +0000 (18:13 +0000)
To simplify source location offsets, this test uses line directives to
force particular lines of interest to have known line numbers so that
adjustments before/after those points don't require updates to the CHECK
lines.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207779 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/debug-info-alias.cpp

index e354ef0a73818e15ab310e4dd50b8cb53ae9f32a..d294a0b0733aada5f5b568efa1d9ceccd35f5226 100644 (file)
@@ -21,8 +21,9 @@ x::bar<int> bi;
 x::bar<float> bf;
 
 using
-// metadata [[NARF:![0-9]*]], i32 0, i32 1, {{.*}} ; [ DW_TAG_variable ] [n]
-narf // [[NARF]] = {{.*}} ; [ DW_TAG_typedef ] [narf] [line [[@LINE]]
+// CHECK: metadata [[NARF:![0-9]*]], i32 0, i32 1, {{.*}} ; [ DW_TAG_variable ] [n]
+# 142
+narf // CHECK: [[NARF]] = {{.*}} ; [ DW_TAG_typedef ] [narf] [line 142
 = int;
 narf n;