]> granicus.if.org Git - clang/commitdiff
new testcases
authorChris Lattner <sabre@nondot.org>
Sun, 26 Aug 2007 22:41:57 +0000 (22:41 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 26 Aug 2007 22:41:57 +0000 (22:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41465 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/complex.c

index 8a496ea425b0d37f056aeb1fb73a98bc293195d3..502ff0f0b3f836954407852c9d1eb718b66739f9 100644 (file)
@@ -20,6 +20,8 @@ void test2(int c) {
 }
 
 _Complex double g1, g2;
+_Complex float cf;
+double D;
 
 void test3() {
   g1 = g1 + g2;
@@ -28,4 +30,8 @@ void test3() {
   g1 = +-~g1;
 
   double Gr = __real g1;
+
+  //cf += D;  // fixme: sema bug
+  D += cf;
+  cf /= g1;
 }