diff options
author | John McCall <rjmccall@apple.com> | 2010-02-17 03:52:49 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-02-17 03:52:49 +0000 |
commit | 92ac9ffecd236a6be0d6ab30cef56100e56b171c (patch) | |
tree | dcadd027e9cec747a31fc2b15cbf3da0bbfed085 /test/CodeGenCXX/mangle.cpp | |
parent | 340963fd040d79ebfd868f976743645254113183 (diff) |
Emit complete constructors and destructors as aliases to base constructors
and destructors when the two entities are semantically identical, i.e. when
the class has no virtual base classes. We only do this for linkage types
for which aliases are supported, i.e. internal and external, i.e. not linkonce.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle.cpp')
-rw-r--r-- | test/CodeGenCXX/mangle.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/CodeGenCXX/mangle.cpp b/test/CodeGenCXX/mangle.cpp index 07183782e7..320b681ac8 100644 --- a/test/CodeGenCXX/mangle.cpp +++ b/test/CodeGenCXX/mangle.cpp @@ -11,6 +11,8 @@ struct Y { }; //CHECK: @pr5966_i = external global //CHECK: @_ZL8pr5966_i = internal global +// CHECK: @_ZN2S7C1Ev = alias {{.*}} @_ZN2S7C2Ev + // CHECK: define zeroext i1 @_ZplRK1YRA100_P1X bool operator+(const Y&, X* (&xs)[100]) { return false; } @@ -219,7 +221,6 @@ struct S7 { }; // PR5139 -// CHECK: @_ZN2S7C1Ev // CHECK: @_ZN2S7C2Ev // CHECK: @"_ZN2S73$_0C1Ev" S7::S7() {} |