From: Bob Wilson Date: Mon, 24 Mar 2014 18:14:15 +0000 (+0000) Subject: Use CHECK-DAG in a test so that it isn't sensitive to metadata order. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=277ebecdb7d2194d7c12f4770ccb5104847756bc;p=clang Use CHECK-DAG in a test so that it isn't sensitive to metadata order. This was failing on an internal branch where the order was different for some reason. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204633 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenCXX/linetable-fnbegin.cpp b/test/CodeGenCXX/linetable-fnbegin.cpp index 392538913f..008bda6f4a 100644 --- a/test/CodeGenCXX/linetable-fnbegin.cpp +++ b/test/CodeGenCXX/linetable-fnbegin.cpp @@ -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 class Foo {