r207779 - Fix debug-info-alias test to add CHECK to some lines that were missing it.

David Blaikie dblaikie at gmail.com
Thu May 1 11:13:24 PDT 2014


Author: dblaikie
Date: Thu May  1 13:13:24 2014
New Revision: 207779

URL: http://llvm.org/viewvc/llvm-project?rev=207779&view=rev
Log:
Fix debug-info-alias test to add CHECK to some lines that were missing it.

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.

Modified:
    cfe/trunk/test/CodeGenCXX/debug-info-alias.cpp

Modified: cfe/trunk/test/CodeGenCXX/debug-info-alias.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/debug-info-alias.cpp?rev=207779&r1=207778&r2=207779&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/debug-info-alias.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/debug-info-alias.cpp Thu May  1 13:13:24 2014
@@ -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;
 





More information about the cfe-commits mailing list