aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/powerpc-byval.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/powerpc-byval.cpp')
-rw-r--r--test/CodeGenCXX/powerpc-byval.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGenCXX/powerpc-byval.cpp b/test/CodeGenCXX/powerpc-byval.cpp
new file mode 100644
index 000000000000..ff87618575d6
--- /dev/null
+++ b/test/CodeGenCXX/powerpc-byval.cpp
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -emit-llvm %s -o - -triple=powerpc-unknown-linux | FileCheck %s
+
+struct S {
+ S();
+ ~S();
+};
+
+void byval(S one, S two) {
+ one = two;
+}
+
+// CHECK: define void @_Z5byval1SS_(%struct.S* %one, %struct.S* %two)