diff options
author | Elliott Hughes <enh@google.com> | 2012-02-10 15:15:39 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2012-02-10 15:15:39 -0800 |
commit | 13c9f04593842217cd5e687da218ed53d9362c4e (patch) | |
tree | 48907472d2b323c82bceb094b9ca68f1027646d9 /tests | |
parent | 2fe129bf176c32f8b507da813ffa02868ff32604 (diff) | |
download | android_dalvik-13c9f04593842217cd5e687da218ed53d9362c4e.tar.gz android_dalvik-13c9f04593842217cd5e687da218ed53d9362c4e.tar.bz2 android_dalvik-13c9f04593842217cd5e687da218ed53d9362c4e.zip |
Add a test for a dalvikvm 'switch' bug.
Bug: http://code.google.com/p/android/issues/detail?id=22344
Change-Id: I3bf9f8a0732876d758bc5378c5d25ad0c8a71684
Diffstat (limited to 'tests')
-rw-r--r-- | tests/095-switch-MAX_INT/expected.txt | 1 | ||||
-rw-r--r-- | tests/095-switch-MAX_INT/info.txt | 1 | ||||
-rw-r--r-- | tests/095-switch-MAX_INT/src/Main.java | 11 |
3 files changed, 13 insertions, 0 deletions
diff --git a/tests/095-switch-MAX_INT/expected.txt b/tests/095-switch-MAX_INT/expected.txt new file mode 100644 index 000000000..12799ccbe --- /dev/null +++ b/tests/095-switch-MAX_INT/expected.txt @@ -0,0 +1 @@ +good diff --git a/tests/095-switch-MAX_INT/info.txt b/tests/095-switch-MAX_INT/info.txt new file mode 100644 index 000000000..bb901dbf4 --- /dev/null +++ b/tests/095-switch-MAX_INT/info.txt @@ -0,0 +1 @@ +Bug: http://code.google.com/p/android/issues/detail?id=22344 diff --git a/tests/095-switch-MAX_INT/src/Main.java b/tests/095-switch-MAX_INT/src/Main.java new file mode 100644 index 000000000..d1171ea6b --- /dev/null +++ b/tests/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(); + } + } +} |