From 62ed9bb28ecf67f45bdc8cd0a7a262cb0bcbab80 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Wed, 5 Oct 2022 10:42:18 +0000 Subject: Remove obsolete `doThrow` statements from some tests. Test: testrunner.py --host --optimizing Change-Id: Icf8819a482f7020de65e34090fd495e62ae87c88 --- test/594-load-string-regression/src/Main.java | 8 -------- 1 file changed, 8 deletions(-) (limited to 'test/594-load-string-regression/src/Main.java') 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 + "\""); } } -- cgit v1.2.3-59-g8ed1b