summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/mangle-subst-std.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-02-17 03:52:49 +0000
committerJohn McCall <rjmccall@apple.com>2010-02-17 03:52:49 +0000
commit92ac9ffecd236a6be0d6ab30cef56100e56b171c (patch)
treedcadd027e9cec747a31fc2b15cbf3da0bbfed085 /test/CodeGenCXX/mangle-subst-std.cpp
parent340963fd040d79ebfd868f976743645254113183 (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-subst-std.cpp')
-rw-r--r--test/CodeGenCXX/mangle-subst-std.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/CodeGenCXX/mangle-subst-std.cpp b/test/CodeGenCXX/mangle-subst-std.cpp
index 913c8f101b..aea841557c 100644
--- a/test/CodeGenCXX/mangle-subst-std.cpp
+++ b/test/CodeGenCXX/mangle-subst-std.cpp
@@ -1,9 +1,10 @@
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-apple-darwin9 | FileCheck %s
+// CHECK: @_ZNSt1AC1Ev = alias {{.*}} @_ZNSt1AC2Ev
+
namespace std {
struct A { A(); };
- // CHECK: define void @_ZNSt1AC1Ev
// CHECK: define void @_ZNSt1AC2Ev
A::A() { }
};