svn commit: trunk/uClibc/test/math

vda at uclibc.org vda at uclibc.org
Wed Feb 18 14:04:18 UTC 2009


Author: vda
Date: 2009-02-18 14:04:17 +0000 (Wed, 18 Feb 2009)
New Revision: 25359

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



Modified:
   trunk/uClibc/test/math/compile_test.c


Changeset:
Modified: trunk/uClibc/test/math/compile_test.c
===================================================================
--- trunk/uClibc/test/math/compile_test.c	2009-02-18 14:04:02 UTC (rev 25358)
+++ trunk/uClibc/test/math/compile_test.c	2009-02-18 14:04:17 UTC (rev 25359)
@@ -134,5 +134,6 @@
 
 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;
 }



More information about the uClibc-cvs mailing list