[cfe-commits] r41346 - /cfe/trunk/test/CodeGen/complex.c

Chris Lattner sabre at nondot.org
Thu Aug 23 16:49:47 PDT 2007


Author: lattner
Date: Thu Aug 23 18:49:47 2007
New Revision: 41346

URL: http://llvm.org/viewvc/llvm-project?rev=41346&view=rev
Log:
make this harder


Modified:
    cfe/trunk/test/CodeGen/complex.c

Modified: cfe/trunk/test/CodeGen/complex.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/complex.c?rev=41346&r1=41345&r2=41346&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/complex.c (original)
+++ cfe/trunk/test/CodeGen/complex.c Thu Aug 23 18:49:47 2007
@@ -10,10 +10,20 @@
 
 _Complex double bar(int);
 void test(_Complex double*);
+void takecomplex(_Complex double);
 
 void test2(int c) {
   _Complex double X;
   X = bar(1);
   test(&X);
+  takecomplex(X);
 }
 
+_Complex double g1, g2;
+
+void test3() {
+  g1 = g1 + g2;
+  g1 = g1 - g2;
+  g1 = g1 * g2;
+  g1 = +-~g1;
+}





More information about the cfe-commits mailing list