diff options
Diffstat (limited to 'test/619-checker-current-method/src')
| -rw-r--r-- | test/619-checker-current-method/src/Main.java | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/test/619-checker-current-method/src/Main.java b/test/619-checker-current-method/src/Main.java index d829370d74..3ab73fa6c5 100644 --- a/test/619-checker-current-method/src/Main.java +++ b/test/619-checker-current-method/src/Main.java @@ -15,19 +15,18 @@ */ public class Main { + // Check that there is no instruction storing to stack. + /// CHECK-START-X86: int Main.foo(int, int, int, int, int, int) disassembly (after) + /// CHECK-NOT: mov [{{\w+}}], {{\w+}} - // Check that there is no instruction storing to stack. - /// CHECK-START-X86: int Main.foo(int, int, int, int, int, int) disassembly (after) - /// CHECK-NOT: mov [{{\w+}}], {{\w+}} - - // Use enough parameters to ensure we'll need a frame. - public static int foo(int a, int b, int c, int d, int e, int f) { - return a + b + c + d + e + f; - } + // Use enough parameters to ensure we'll need a frame. + public static int foo(int a, int b, int c, int d, int e, int f) { + return a + b + c + d + e + f; + } - public static void main(String[] args) { - if (foo(1, 2, 3, 4, 5, 6) != 21) { - throw new Error("Expected 21"); + public static void main(String[] args) { + if (foo(1, 2, 3, 4, 5, 6) != 21) { + throw new Error("Expected 21"); + } } - } } |