diff options
| author | 2012-12-10 15:47:02 -0800 | |
|---|---|---|
| committer | 2012-12-10 15:49:23 -0800 | |
| commit | 4f3d94b4e3b40fa7aa2bb5007fa4bb5703189b61 (patch) | |
| tree | 63a0ded97a646bb5bfc72e50413acbca099bf6ab /test/084-class-init/src/Main.java | |
| parent | 42b4dc4280c25a624bf38e19da70be39d2676232 (diff) | |
Port new 084 test to art.
art equivalent of: https://android-review.googlesource.com/48006
Change-Id: I64be67c22d0e2db5a52facbb37941ef0c14383f6
Diffstat (limited to 'test/084-class-init/src/Main.java')
| -rw-r--r-- | test/084-class-init/src/Main.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/084-class-init/src/Main.java b/test/084-class-init/src/Main.java index abad1f0cf1..cf69570854 100644 --- a/test/084-class-init/src/Main.java +++ b/test/084-class-init/src/Main.java @@ -67,6 +67,13 @@ public class Main { } catch (NoClassDefFoundError ncdfe) { System.out.println("Got expected NCDFE for FIELD1"); } + + try { + System.out.println(Exploder.FIELD); + System.err.println("Load of FIELD succeeded unexpectedly"); + } catch (AssertionError expected) { + System.out.println("Got expected '" + expected.getMessage() + "' from Exploder"); + } } static void checkTiming() { |