Skip to content

Commit

Permalink
Add $inline$ to localStaticNop() in run-test 569.
Browse files Browse the repository at this point in the history
Test: testrunner.py --host --optimizing -t 569
Bug: 181943478
Change-Id: I072e9e20ec7b65007fdf45805e33c45358b5cc32
  • Loading branch information
vmarko committed Mar 4, 2024
1 parent 7a490b9 commit d3ec33d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/569-checker-pattern-replacement/src/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,13 @@
public class Main {
static class ExpectedError extends Error {}

/// CHECK-START: void Main.localStaticNopAndThrow() inliner (before)
/// CHECK: InvokeStaticOrDirect method_name:Main.localStaticNop

/// CHECK-START: void Main.localStaticNopAndThrow() inliner (after)
/// CHECK-NOT: InvokeStaticOrDirect method_name:Main.localStaticNop

public static void localStaticNopAndThrow() {
// Pattern matching replaces the invoke even in a block that ends with a `throw`.
localStaticNop();
$inline$localStaticNop();
throw new ExpectedError();
}

public static void localStaticNop() {}
public static void $inline$localStaticNop() {}

/// CHECK-START: void Main.staticNopNeverInline() inliner (before)
/// CHECK: InvokeStaticOrDirect
Expand Down

0 comments on commit d3ec33d

Please sign in to comment.