Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Unified Diff: test/android/32or64.c

Issue 301373002: android: Support host multilib builds. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: Fix build warning in test Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pylib/gyp/generator/android.py ('k') | test/android/gyptest-host-multilib.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
}
« no previous file with comments | « pylib/gyp/generator/android.py ('k') | test/android/gyptest-host-multilib.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698