[llvm-commits] [llvm] r110935 - /llvm/trunk/test/FrontendC/2010-08-12-asm-aggr-arg.c

Bob Wilson bob.wilson at apple.com
Thu Aug 12 10:31:41 PDT 2010


Author: bwilson
Date: Thu Aug 12 12:31:41 2010
New Revision: 110935

URL: http://llvm.org/viewvc/llvm-project?rev=110935&view=rev
Log:
Add a test for llvm-gcc svn 110632.

Added:
    llvm/trunk/test/FrontendC/2010-08-12-asm-aggr-arg.c

Added: llvm/trunk/test/FrontendC/2010-08-12-asm-aggr-arg.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2010-08-12-asm-aggr-arg.c?rev=110935&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC/2010-08-12-asm-aggr-arg.c (added)
+++ llvm/trunk/test/FrontendC/2010-08-12-asm-aggr-arg.c Thu Aug 12 12:31:41 2010
@@ -0,0 +1,16 @@
+// RUN: %llvmgcc %s -S -O0 -o - | FileCheck %s
+// Radar 8288710: A small aggregate can be passed as an integer.  Make sure
+// we don't get an error with "input constraint with a matching output
+// constraint of incompatible type!" 
+
+struct wrapper {
+  int i;
+};
+
+// CHECK: xyz
+int test(int i) {
+  struct wrapper w;
+  w.i = i;
+  __asm__("xyz" : "=r" (w) : "0" (w));
+  return w.i;
+}





More information about the llvm-commits mailing list