summaryrefslogtreecommitdiffstats
path: root/test/095-switch-MAX_INT/src
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2012-02-10 16:11:54 -0800
committerElliott Hughes <enh@google.com>2012-02-10 16:12:44 -0800
commit5b1f162d9cbec1c6b2863bd220bdaecdcb18b139 (patch)
tree16c67376ecbb5e19d5f40992143ce79bd272e79d /test/095-switch-MAX_INT/src
parent44b412bb795fa6999129b2bc16f5eec1ea97e8f8 (diff)
downloadart-5b1f162d9cbec1c6b2863bd220bdaecdcb18b139.zip
art-5b1f162d9cbec1c6b2863bd220bdaecdcb18b139.tar.gz
art-5b1f162d9cbec1c6b2863bd220bdaecdcb18b139.tar.bz2
Add a new dalvik run-test test to art.
Original: https://android-review.googlesource.com/32551 Change-Id: I0503818af15f427c6419a7a7a49689b3c2596ede
Diffstat (limited to 'test/095-switch-MAX_INT/src')
-rw-r--r--test/095-switch-MAX_INT/src/Main.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/095-switch-MAX_INT/src/Main.java b/test/095-switch-MAX_INT/src/Main.java
new file mode 100644
index 0000000..d1171ea
--- /dev/null
+++ b/test/095-switch-MAX_INT/src/Main.java
@@ -0,0 +1,11 @@
+public class Main {
+ static public void main(String[] args) throws Exception {
+ switch (0x7fffffff) {
+ case 0x7fffffff:
+ System.err.println("good");
+ break;
+ default:
+ throw new AssertionError();
+ }
+ }
+}