Error when taking the modulo of the length of an array
Bug: 13679511
Change-Id: I4c694a9d85727af8095091c42f1ac00a78ba4ea2
diff --git a/test/083-compiler-regressions/src/Main.java b/test/083-compiler-regressions/src/Main.java
index 007b762..586ff87 100644
--- a/test/083-compiler-regressions/src/Main.java
+++ b/test/083-compiler-regressions/src/Main.java
@@ -34,6 +34,7 @@
b2302318Test();
b2487514Test();
b5884080Test();
+ b13679511Test();
largeFrameTest();
largeFrameTestFloat();
mulBy1Test();
@@ -291,6 +292,21 @@
}
}
+ static void b13679511Test() {
+ System.out.println("b13679511Test starting");
+ int[] nn = { 1, 2, 3, 4 };
+ for (int i : nn) {
+ System.out.println(i);
+ }
+ int len = nn.length;
+ System.out.println(nn.length);
+ System.out.println(nn.length % 3);
+ System.out.println(len % 3);
+ System.out.println(4 % 3);
+ System.out.println((nn.length % 3) != 1);
+ System.out.println("b13679511Test finishing");
+ }
+
static double TooManyArgs(
long l00,
long l01,