[llvm-commits] [llvm] r93671 - /llvm/trunk/test/FrontendC/pr5406.c

Rafael Espindola rafael.espindola at gmail.com
Sat Jan 16 20:44:57 PST 2010


Author: rafael
Date: Sat Jan 16 22:44:55 2010
New Revision: 93671

URL: http://llvm.org/viewvc/llvm-project?rev=93671&view=rev
Log:
Add test for pr5406

Added:
    llvm/trunk/test/FrontendC/pr5406.c

Added: llvm/trunk/test/FrontendC/pr5406.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/pr5406.c?rev=93671&view=auto

==============================================================================
--- llvm/trunk/test/FrontendC/pr5406.c (added)
+++ llvm/trunk/test/FrontendC/pr5406.c Sat Jan 16 22:44:55 2010
@@ -0,0 +1,20 @@
+// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | FileCheck %s
+// PR 5406
+
+// ARM test.
+// XFAIL: !arm
+
+typedef struct { char x[3]; } A0;
+void foo (int i, ...);
+
+
+// CHECK: call arm_aapcscc  void (i32, ...)* @foo(i32 1, i32 {{.*}}) nounwind
+int main (void)
+{
+  A0 a3;
+  a3.x[0] = 0;
+  a3.x[0] = 0;
+  a3.x[2] = 26;
+  foo (1,  a3 );
+  return 0;
+}





More information about the llvm-commits mailing list