Make the test less sensitive to DWARF emission implementation details.
authorEli Bendersky <eliben@google.com>
Thu, 29 Nov 2012 20:01:14 +0000 (20:01 +0000)
committerEli Bendersky <eliben@google.com>
Thu, 29 Nov 2012 20:01:14 +0000 (20:01 +0000)
Note: the ":" goes into the regex because FileCheck wrongly complains about
unbalanced brackets otherwise.

llvm-svn: 168934

clang/test/CodeGenCXX/debug-info-pubtypes.cpp

index 612b6b5..6ca3da8 100644 (file)
@@ -3,10 +3,10 @@
 // RUN: FileCheck %s < %t
 
 // FIXME: This testcase shouldn't rely on assembly emission.
-//CHECK: Lpubtypes_begin1:
+//CHECK: Lpubtypes_begin[[SECNUM:[0-9]:]]
 //CHECK:         .asciz   "G"
 //CHECK-NEXT:    .long   0
-//CHECK-NEXT: Lpubtypes_end1:
+//CHECK-NEXT: Lpubtypes_end[[SECNUM]]
 
 class G {
 public: