summaryrefslogtreecommitdiff
path: root/test/594-load-string-regression/src/Main.java
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2022-10-05 10:42:18 +0000
committer VladimĂ­r Marko <vmarko@google.com> 2022-10-05 12:45:08 +0000
commit62ed9bb28ecf67f45bdc8cd0a7a262cb0bcbab80 (patch)
tree9464a6b290f0c15cedaf75812a14ad53c745fca4 /test/594-load-string-regression/src/Main.java
parentd08df3441777d9c20455ee4cd26279384d95f9b1 (diff)
Remove obsolete `doThrow` statements from some tests.
Test: testrunner.py --host --optimizing Change-Id: Icf8819a482f7020de65e34090fd495e62ae87c88
Diffstat (limited to 'test/594-load-string-regression/src/Main.java')
-rw-r--r--test/594-load-string-regression/src/Main.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/test/594-load-string-regression/src/Main.java b/test/594-load-string-regression/src/Main.java
index 0b9f7b52a1..59031304f2 100644
--- a/test/594-load-string-regression/src/Main.java
+++ b/test/594-load-string-regression/src/Main.java
@@ -15,8 +15,6 @@
*/
public class Main {
- static boolean doThrow = false;
-
// Note: We're not doing checker tests as we cannot do them specifically for a non-PIC
// configuration. The check here would be "prepare_for_register_allocation (before)"
// CHECK: LoadClass
@@ -28,8 +26,6 @@ public class Main {
// CHECK-NEXT: NewInstance
// but the order of instructions for non-PIC mode is different.
public static int $noinline$test() {
- if (doThrow) { throw new Error(); }
-
int r = 0x12345678;
do {
// LICM pulls the LoadClass and ClinitCheck out of the loop, leaves NewInstance in the loop.
@@ -67,11 +63,7 @@ public class Main {
}
class Helper {
- static boolean doThrow = false;
-
public void $noinline$printString(String s) {
- if (doThrow) { throw new Error(); }
-
System.out.println("String: \"" + s + "\"");
}
}