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);
+}
+
+


_______________________________________________
llvm-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to