summaryrefslogtreecommitdiffstats
path: root/test/native/cross-android-armv7-tst1/HelloJava.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-07-23 01:50:21 +0200
committerSven Gothel <[email protected]>2011-07-23 01:50:21 +0200
commit967782f7bdbd0dd73c2e3ea448a0c9d44552a7d9 (patch)
treee05edc4bed58c9ff8503728b0a6db07b67032144 /test/native/cross-android-armv7-tst1/HelloJava.java
parent2d57b3cbb4a8189ecb5523f6d8de3aa37db78a13 (diff)
Adding native crosscompile test to ubuntu/armv7 and android/armv7
Diffstat (limited to 'test/native/cross-android-armv7-tst1/HelloJava.java')
-rw-r--r--test/native/cross-android-armv7-tst1/HelloJava.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/native/cross-android-armv7-tst1/HelloJava.java b/test/native/cross-android-armv7-tst1/HelloJava.java
new file mode 100644
index 0000000..3c6a841
--- /dev/null
+++ b/test/native/cross-android-armv7-tst1/HelloJava.java
@@ -0,0 +1,16 @@
+
+public class HelloJava {
+ public static void main(String args[]) {
+ System.out.print("HelloJava main(");
+ for(int i=0; i<args.length; i++) {
+ if(0<i) {
+ System.out.print(", ");
+ }
+ System.out.print(args[i]);
+ }
+ System.out.println(")");
+ }
+ public static void test(int i) {
+ System.out.println("HelloJava test("+i+")");
+ }
+}