]> granicus.if.org Git - clang/commitdiff
Use CHECK-DAG in a test so that it isn't sensitive to metadata order.
authorBob Wilson <bob.wilson@apple.com>
Mon, 24 Mar 2014 18:14:15 +0000 (18:14 +0000)
committerBob Wilson <bob.wilson@apple.com>
Mon, 24 Mar 2014 18:14:15 +0000 (18:14 +0000)
This was failing on an internal branch where the order was different for
some reason. <rdar://problem/16407581>

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

test/CodeGenCXX/linetable-fnbegin.cpp

index 392538913f9d6dde9a6a4b26fef892cd949eac72..008bda6f4a4ccf3df12122053a201c529fb231f8 100644 (file)
@@ -4,9 +4,9 @@
 // CHECK: define{{.*}}bar
 // CHECK-NOT: define
 // CHECK: ret {{.*}}, !dbg ![[DBG:.*]]
-// CHECK: ![[HPP:.*]] = metadata !{metadata !"./template.hpp",
-// CHECK:![[BLOCK:.*]] = metadata !{{{.*}}, metadata ![[HPP]], {{.*}}} ; [ DW_TAG_lexical_block ]
-// CHECK[[DBG]] = metadata !{i32 23, i32 0, metadata ![[BLOCK]], null}
+// CHECK-DAG: ![[HPP:.*]] = metadata !{metadata !"./template.hpp",
+// CHECK-DAG: ![[BLOCK:.*]] = metadata !{{{.*}}, metadata ![[HPP]], {{.*}}} ; [ DW_TAG_lexical_block ]
+// CHECK-DAG: ![[DBG]] = metadata !{i32 23, i32 0, metadata ![[BLOCK]], null}
 # 1 "./template.h" 1
 template <typename T>
 class Foo {