From 5704d1a8364c6b975fe3bffe9c79cbb8fcb798bf Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Mon, 24 Mar 2014 21:19:34 +0000 Subject: [PATCH] Cleanup testcase by adding return statements and replacing CHECK-DAG's with plain old CHECKs. Follow-up to r204633. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204670 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGenCXX/linetable-fnbegin.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/CodeGenCXX/linetable-fnbegin.cpp b/test/CodeGenCXX/linetable-fnbegin.cpp index 008bda6f4a..81e7f7b82a 100644 --- a/test/CodeGenCXX/linetable-fnbegin.cpp +++ b/test/CodeGenCXX/linetable-fnbegin.cpp @@ -4,21 +4,22 @@ // CHECK: define{{.*}}bar // CHECK-NOT: define // CHECK: ret {{.*}}, !dbg ![[DBG:.*]] -// 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} +// CHECK: ![[HPP:.*]] = metadata !{metadata !"./template.hpp", +// CHECK: ![[DBG]] = metadata !{i32 23, i32 0, metadata ![[BLOCK:.*]], null} +// CHECK: ![[BLOCK]] = metadata !{{{.*}}, metadata ![[HPP]], {{.*}}} ; [ DW_TAG_lexical_block ] # 1 "./template.h" 1 template class Foo { public: - int bar(); + int bar(); }; # 21 "./template.hpp" template int Foo::bar() { + return 23; } int main (int argc, const char * argv[]) { Foo f; - f.bar(); + return f.bar(); } -- 2.50.1