Ver Fonte

test/math/compile_test.c: make it exit with 0 always

Denis Vlasenko há 16 anos atrás
pai
commit
ef3c0c193c
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      test/math/compile_test.c

+ 2 - 1
test/math/compile_test.c

@@ -134,5 +134,6 @@ return r;
 
 int main(int argc, char **argv)
 {
-	return (long) &testf + (long) &testl;
+        /* Always 0 but gcc hopefully won't be able to notice */
+        return 5 & ((long)&testf) & ((long)&testl) & 2;
 }