]> granicus.if.org Git - clang/commitdiff
make this harder
authorChris Lattner <sabre@nondot.org>
Thu, 23 Aug 2007 23:49:47 +0000 (23:49 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 23 Aug 2007 23:49:47 +0000 (23:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41346 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/complex.c

index 6c081dbd345acaeb558eb1986b60b1ac298f4eab..3b5437c184a735487260750a0f978260e7938344 100644 (file)
@@ -10,10 +10,20 @@ int main(void)
 
 _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;
+}