commit | 48c60f298bd4c961c63fa9b0282c8f9112afdbba | [log] [tgz] |
---|---|---|
author | Nicolas Geoffray <ngeoffray@google.com> | Tue Dec 02 13:48:19 2014 +0000 |
committer | Nicolas Geoffray <ngeoffray@google.com> | Tue Dec 02 13:48:19 2014 +0000 |
tree | 3544eff9ee5e621d50732e029b2f65d55102e5b4 | |
parent | 383993c1dc58c13f7570b9945037d6f83094785b [diff] |
Add a branch to ensure the test is compiled. The compiler will now not compile large methods with no branch. Change-Id: Iaea284c648f7f3f754cb8ec721ad2ecffbd2f6af
diff --git a/test/421-large-frame/src/Main.java b/test/421-large-frame/src/Main.java index 01b89ba..dae72fb 100644 --- a/test/421-large-frame/src/Main.java +++ b/test/421-large-frame/src/Main.java
@@ -2029,6 +2029,11 @@ l997 += l996; l998 += l997; l999 += l998; - return l999; + // Create a branch to beat the large method check. + if (l998 == l999) { + return l998; + } else { + return l999; + } } }