r226384 - Refactor test so it's not lazily emitted on a global, simplifying ordering when more test cases are added

David Blaikie dblaikie at gmail.com
Sat Jan 17 16:37:05 PST 2015


Author: dblaikie
Date: Sat Jan 17 18:37:04 2015
New Revision: 226384

URL: http://llvm.org/viewvc/llvm-project?rev=226384&view=rev
Log:
Refactor test so it's not lazily emitted on a global, simplifying ordering when more test cases are added

Modified:
    cfe/trunk/test/CodeGenCXX/debug-info-line.cpp

Modified: cfe/trunk/test/CodeGenCXX/debug-info-line.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/debug-info-line.cpp?rev=226384&r1=226383&r2=226384&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/debug-info-line.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/debug-info-line.cpp Sat Jan 17 18:37:04 2015
@@ -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
 





More information about the cfe-commits mailing list