diff options
author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-02-16 09:31:36 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-02-16 09:31:36 +0000 |
commit | ecb7e5c8afe929ee38155db94de6b084ec32a645 (patch) | |
tree | 53010172e19c77ea447bcd89e117cda052ab52e0 /test/CodeGenCXX/x86_32-arguments.cpp | |
parent | 5044f5c816adfd5cba17f1adee1a10127296d0bf (diff) | |
download | src-ecb7e5c8afe929ee38155db94de6b084ec32a645.tar.gz src-ecb7e5c8afe929ee38155db94de6b084ec32a645.zip |
Update clang to r96341.
Notes
Notes:
svn path=/vendor/clang/dist/; revision=203955
Diffstat (limited to 'test/CodeGenCXX/x86_32-arguments.cpp')
-rw-r--r-- | test/CodeGenCXX/x86_32-arguments.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/CodeGenCXX/x86_32-arguments.cpp b/test/CodeGenCXX/x86_32-arguments.cpp new file mode 100644 index 000000000000..d13c0e4888fd --- /dev/null +++ b/test/CodeGenCXX/x86_32-arguments.cpp @@ -0,0 +1,24 @@ +// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -o - %s | FileCheck %s + +// Non-trivial dtors, should both be passed indirectly. +struct S { + ~S(); + int s; +}; + +// CHECK: define void @_Z1fv(%struct.S* noalias sret % +S f() { return S(); } +// CHECK: define void @_Z1f1S(%struct.S*) +void f(S) { } + +// Non-trivial dtors, should both be passed indirectly. +class C { + ~C(); + double c; +}; + +// CHECK: define void @_Z1gv(%class.C* noalias sret % +C g() { return C(); } + +// CHECK: define void @_Z1f1C(%class.C*) +void f(C) { } |