summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/inheriting-constructor.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-12-09 14:51:17 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-12-09 14:51:17 +0000
commitc3cde36ead0f088c3948329ac0e6f493a9422a86 (patch)
tree22838f109cebb21d0f664d6dbf4aca597504be6d /clang/test/CodeGenCXX/inheriting-constructor.cpp
parent63af7c482d4482fb7f93044b96aa5a148895aca9 (diff)
downloadbcm5719-llvm-c3cde36ead0f088c3948329ac0e6f493a9422a86.tar.gz
bcm5719-llvm-c3cde36ead0f088c3948329ac0e6f493a9422a86.zip
Output destructors and constructors in a more natural order.
With this patch we output the in the order C2 C1 D2 D1 D0 Which means that a destructor or constructor that call another is output after the callee. This is a bit easier to read IHMO and a tiny bit more efficient as we don't put a decl in DeferredDeclsToEmit. llvm-svn: 196784
Diffstat (limited to 'clang/test/CodeGenCXX/inheriting-constructor.cpp')
-rw-r--r--clang/test/CodeGenCXX/inheriting-constructor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/inheriting-constructor.cpp b/clang/test/CodeGenCXX/inheriting-constructor.cpp
index c99a20c730e..9394137e641 100644
--- a/clang/test/CodeGenCXX/inheriting-constructor.cpp
+++ b/clang/test/CodeGenCXX/inheriting-constructor.cpp
@@ -11,9 +11,9 @@ struct C { template<typename T> C(T); };
struct D : C { using C::C; };
D d(123);
-// CHECK-LABEL: define void @_ZN1BD0Ev
-// CHECK-LABEL: define void @_ZN1BD1Ev
// CHECK-LABEL: define void @_ZN1BD2Ev
+// CHECK-LABEL: define void @_ZN1BD1Ev
+// CHECK-LABEL: define void @_ZN1BD0Ev
// CHECK-LABEL: define linkonce_odr void @_ZN1BC1Ei(
// CHECK: call void @_ZN1BC2Ei(
OpenPOWER on IntegriCloud