[llvm-commits] [llvm] r42398 - /llvm/trunk/test/CFrontend/2007-09-27-ComplexIntCompare.c

Chris Lattner sabre at nondot.org
Thu Sep 27 08:47:17 PDT 2007


Author: lattner
Date: Thu Sep 27 10:47:16 2007
New Revision: 42398

URL: http://llvm.org/viewvc/llvm-project?rev=42398&view=rev
Log:
new testcase for PR1708

Added:
    llvm/trunk/test/CFrontend/2007-09-27-ComplexIntCompare.c

Added: llvm/trunk/test/CFrontend/2007-09-27-ComplexIntCompare.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CFrontend/2007-09-27-ComplexIntCompare.c?rev=42398&view=auto

==============================================================================
--- llvm/trunk/test/CFrontend/2007-09-27-ComplexIntCompare.c (added)
+++ llvm/trunk/test/CFrontend/2007-09-27-ComplexIntCompare.c Thu Sep 27 10:47:16 2007
@@ -0,0 +1,14 @@
+// RUN: %llvmgcc -S %s -o -  
+// PR1708
+struct s { _Complex unsigned short x; };
+struct s gs = { 100 + 200i };
+struct s __attribute__((noinline)) foo (void) { return gs; }
+
+int main ()
+{
+  if (foo ().x != gs.x)
+    abort ();
+  exit (0);
+}
+
+





More information about the llvm-commits mailing list