From 1c39bbb7410db91829f74f8c06e93a1d288541bb Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Sun, 18 Jan 2015 00:37:04 +0000 Subject: [PATCH] Refactor test so it's not lazily emitted on a global, simplifying ordering when more test cases are added llvm-svn: 226384 --- clang/test/CodeGenCXX/debug-info-line.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/clang/test/CodeGenCXX/debug-info-line.cpp b/clang/test/CodeGenCXX/debug-info-line.cpp index bcfd0d0..8add4d2 100644 --- a/clang/test/CodeGenCXX/debug-info-line.cpp +++ b/clang/test/CodeGenCXX/debug-info-line.cpp @@ -171,15 +171,16 @@ struct f14 { }; // CHECK-LABEL: define -// CHECK-LABEL: define -// CHECK-LABEL: define -struct { +struct f14_use { // CHECK: call {{.*}}, !dbg [[DBG_F14_CTOR_CALL:![0-9]*]] #line 1600 f14 v = 1; -} f14_inst; + f14_use(); +}; + +f14_use::f14_use() = default; // CHECK-LABEL: define -- 2.7.4