]> granicus.if.org Git - clang/commitdiff
fix type of main, use !=
authorGabor Greif <ggreif@gmail.com>
Fri, 13 Jul 2007 23:40:27 +0000 (23:40 +0000)
committerGabor Greif <ggreif@gmail.com>
Fri, 13 Jul 2007 23:40:27 +0000 (23:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39842 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/complex.c

index 30793aaf9e713a92bcaaacb361ea49fc828c764e..075f47c761c279e80cfdc46513f5ebb5ab8714b6 100644 (file)
@@ -1,10 +1,10 @@
 // RUN: clang -emit-llvm %s
 // XFAIL: *
 
-void main(void)
+int main(void)
 {
   double _Complex a = 5;
   double _Complex b = 42;
 
-  return a * b == b * a;
+  return a * b != b * a;
 }