[cfe-commits] r94654 - /cfe/trunk/test/CodeGenCXX/x86_32-arguments.cpp

Anders Carlsson andersca at mac.com
Tue Jan 26 19:22:56 PST 2010


Author: andersca
Date: Tue Jan 26 21:22:55 2010
New Revision: 94654

URL: http://llvm.org/viewvc/llvm-project?rev=94654&view=rev
Log:
Update xcode project.

Added:
    cfe/trunk/test/CodeGenCXX/x86_32-arguments.cpp

Added: cfe/trunk/test/CodeGenCXX/x86_32-arguments.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/x86_32-arguments.cpp?rev=94654&view=auto

==============================================================================
--- cfe/trunk/test/CodeGenCXX/x86_32-arguments.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/x86_32-arguments.cpp Tue Jan 26 21:22:55 2010
@@ -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) { }





More information about the cfe-commits mailing list