OSDN Git Service

test/math/compile_test.c: make it exit with 0 always
authorDenis Vlasenko <vda.linux@googlemail.com>
Wed, 18 Feb 2009 14:04:17 +0000 (14:04 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Wed, 18 Feb 2009 14:04:17 +0000 (14:04 -0000)
test/math/compile_test.c

index 4647b23..361556a 100644 (file)
@@ -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;
 }