Index: test/android/32or64.c |
diff --git a/test/android/hello.c b/test/android/32or64.c |
similarity index 57% |
copy from test/android/hello.c |
copy to test/android/32or64.c |
index e6bf622aaa411c1ac8b1f16be4a4c690421d5bd9..3ea81692bde47a65456b38b929e21fbb331eae8c 100644 |
--- a/test/android/hello.c |
+++ b/test/android/32or64.c |
@@ -3,10 +3,11 @@ |
* found in the LICENSE file. |
*/ |
-#include <stdio.h> |
- |
-int main() |
+const char* getString() |
{ |
- printf("Hello, world!\n"); |
- return 0; |
+#ifdef __LP64__ |
+ return "Hello, 64-bit world!\n"; |
+#else |
+ return "Hello, 32-bit world!\n"; |
+#endif |
} |