summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-09-26 03:55:37 +0000
committerAnders Carlsson <andersca@mac.com>2009-09-26 03:55:37 +0000
commit296f8dc52faada05239a1dcd5af4ee8ca76273a2 (patch)
tree6029188facdeab1724441725db148588606022f9 /clang/test
parent7226af69cb8c0116cf7e6607010e636931952c22 (diff)
downloadbcm5719-llvm-296f8dc52faada05239a1dcd5af4ee8ca76273a2.tar.gz
bcm5719-llvm-296f8dc52faada05239a1dcd5af4ee8ca76273a2.zip
Mangle record types as decls.
llvm-svn: 82843
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CodeGenCXX/PR5050-constructor-conversion.cpp4
-rw-r--r--clang/test/CodeGenCXX/constructor-default-arg.cpp12
-rw-r--r--clang/test/CodeGenCXX/copy-assign-synthesis-1.cpp24
-rw-r--r--clang/test/CodeGenCXX/copy-constructor-synthesis.cpp12
-rw-r--r--clang/test/CodeGenCXX/mangle-subst.cpp7
-rw-r--r--clang/test/CodeGenCXX/member-functions.cpp2
6 files changed, 34 insertions, 27 deletions
diff --git a/clang/test/CodeGenCXX/PR5050-constructor-conversion.cpp b/clang/test/CodeGenCXX/PR5050-constructor-conversion.cpp
index 7c7068742d5..e5f722c513d 100644
--- a/clang/test/CodeGenCXX/PR5050-constructor-conversion.cpp
+++ b/clang/test/CodeGenCXX/PR5050-constructor-conversion.cpp
@@ -12,8 +12,8 @@ A f(const B &b) {
return b;
}
-// CHECK-LP64: call __ZN1AC1ERK1Ai
+// CHECK-LP64: call __ZN1AC1ERKS_i
-// CHECK-LP32: call L__ZN1AC1ERK1Ai
+// CHECK-LP32: call L__ZN1AC1ERKS_i
diff --git a/clang/test/CodeGenCXX/constructor-default-arg.cpp b/clang/test/CodeGenCXX/constructor-default-arg.cpp
index 6691912b6f7..7e6a7cd8f71 100644
--- a/clang/test/CodeGenCXX/constructor-default-arg.cpp
+++ b/clang/test/CodeGenCXX/constructor-default-arg.cpp
@@ -31,10 +31,10 @@ int main() {
X d(a, 5, 6);
}
-// CHECK-LP64: call __ZN1XC1ERK1Xiii
-// CHECK-LP64: call __ZN1XC1ERK1Xiii
-// CHECK-LP64: call __ZN1XC1ERK1Xiii
+// CHECK-LP64: call __ZN1XC1ERKS_iii
+// CHECK-LP64: call __ZN1XC1ERKS_iii
+// CHECK-LP64: call __ZN1XC1ERKS_iii
-// CHECK-LP32: call L__ZN1XC1ERK1Xiii
-// CHECK-LP32: call L__ZN1XC1ERK1Xiii
-// CHECK-LP32: call L__ZN1XC1ERK1Xiii
+// CHECK-LP32: call L__ZN1XC1ERKS_iii
+// CHECK-LP32: call L__ZN1XC1ERKS_iii
+// CHECK-LP32: call L__ZN1XC1ERKS_iii
diff --git a/clang/test/CodeGenCXX/copy-assign-synthesis-1.cpp b/clang/test/CodeGenCXX/copy-assign-synthesis-1.cpp
index 3c24b127528..d4a93afefbf 100644
--- a/clang/test/CodeGenCXX/copy-assign-synthesis-1.cpp
+++ b/clang/test/CodeGenCXX/copy-assign-synthesis-1.cpp
@@ -93,17 +93,17 @@ int main() {
dstY.pr();
}
-// CHECK-LP64: .globl __ZN1XaSERK1X
-// CHECK-LP64: .weak_definition __ZN1XaSERK1X
-// CHECK-LP64: __ZN1XaSERK1X:
-// CHECK-LP64: .globl __ZN1QaSERK1Q
-// CHECK-LP64: .weak_definition __ZN1QaSERK1Q
-// CHECK-LP64: __ZN1QaSERK1Q:
+// CHECK-LP64: .globl __ZN1XaSERKS_
+// CHECK-LP64: .weak_definition __ZN1XaSERKS_
+// CHECK-LP64: __ZN1XaSERKS_:
+// CHECK-LP64: .globl __ZN1QaSERKS_
+// CHECK-LP64: .weak_definition __ZN1QaSERKS_
+// CHECK-LP64: __ZN1QaSERKS_:
-// CHECK-LP32: .globl __ZN1XaSERK1X
-// CHECK-LP32: .weak_definition __ZN1XaSERK1X
-// CHECK-LP32: __ZN1XaSERK1X:
-// CHECK-LP32: .globl __ZN1QaSERK1Q
-// CHECK-LP32: .weak_definition __ZN1QaSERK1Q
-// CHECK-LP32: __ZN1QaSERK1Q:
+// CHECK-LP32: .globl __ZN1XaSERKS_
+// CHECK-LP32: .weak_definition __ZN1XaSERKS_
+// CHECK-LP32: __ZN1XaSERKS_:
+// CHECK-LP32: .globl __ZN1QaSERKS_
+// CHECK-LP32: .weak_definition __ZN1QaSERKS_
+// CHECK-LP32: __ZN1QaSERKS_:
diff --git a/clang/test/CodeGenCXX/copy-constructor-synthesis.cpp b/clang/test/CodeGenCXX/copy-constructor-synthesis.cpp
index 37550c42193..47971afe61d 100644
--- a/clang/test/CodeGenCXX/copy-constructor-synthesis.cpp
+++ b/clang/test/CodeGenCXX/copy-constructor-synthesis.cpp
@@ -101,10 +101,10 @@ int main() {
m1.pr();
}
-// CHECK-LP64: .globl __ZN1XC1ERK1X
-// CHECK-LP64: .weak_definition __ZN1XC1ERK1X
-// CHECK-LP64: __ZN1XC1ERK1X:
+// CHECK-LP64: .globl __ZN1XC1ERKS_
+// CHECK-LP64: .weak_definition __ZN1XC1ERKS_
+// CHECK-LP64: __ZN1XC1ERKS_:
-// CHECK-LP32: .globl __ZN1XC1ERK1X
-// CHECK-LP32: .weak_definition __ZN1XC1ERK1X
-// CHECK-LP32: __ZN1XC1ERK1X:
+// CHECK-LP32: .globl __ZN1XC1ERKS_
+// CHECK-LP32: .weak_definition __ZN1XC1ERKS_
+// CHECK-LP32: __ZN1XC1ERKS_:
diff --git a/clang/test/CodeGenCXX/mangle-subst.cpp b/clang/test/CodeGenCXX/mangle-subst.cpp
index fb0e9909025..2ff375e711c 100644
--- a/clang/test/CodeGenCXX/mangle-subst.cpp
+++ b/clang/test/CodeGenCXX/mangle-subst.cpp
@@ -24,3 +24,10 @@ namespace A {
// CHECK: define void @_Z1fN1A1AENS_1BE(
void f(A::A a, A::B b) { }
+
+struct C {
+ struct D { };
+};
+
+// CHECK: define void @_Z1fN1C1DERS_PS_S1_(
+void f(C::D, C&, C*, C&) { }
diff --git a/clang/test/CodeGenCXX/member-functions.cpp b/clang/test/CodeGenCXX/member-functions.cpp
index 8ada907117b..29629d5bf82 100644
--- a/clang/test/CodeGenCXX/member-functions.cpp
+++ b/clang/test/CodeGenCXX/member-functions.cpp
@@ -58,6 +58,6 @@ struct T {
void test3() {
T t1, t2;
- // RUN: grep "call void @_ZN1TpsERK1T" %t
+ // RUN: grep "call void @_ZN1TpsERKS_" %t
T result = t1 + t2;
}
OpenPOWER on IntegriCloud