diff options
Diffstat (limited to 'test/CodeGenCXX/powerpc-byval.cpp')
-rw-r--r-- | test/CodeGenCXX/powerpc-byval.cpp | 12 |
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 0000000..ff87618 --- /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) |