Add a new debug test with a bad local variable scope
- Add support into test framework allowing to set breakpoint
on a specific line.
Bug: 69093793
Change-Id: Iddc672d6613dde305d2337f1e4fc6dd359fdfbbb
diff --git a/src/test/debugTestResources/Locals.java b/src/test/debugTestResources/Locals.java
index 71f2a66..e32f2ca 100644
--- a/src/test/debugTestResources/Locals.java
+++ b/src/test/debugTestResources/Locals.java
@@ -353,6 +353,18 @@
return c;
}
+ public static void localVisibilityIntoLoop(double B[][], double A[][]) {
+ int i;
+ int length = 1;
+ for (i = 0; i < length; i++) {
+ double Bi[] = B[i];
+ double Ai[] = A[i];
+ for (int j = 0; j < 1; j += 4) {
+ Bi[j] = Ai[j];
+ }
+ }
+ }
+
public static void main(String[] args) {
noLocals();
unusedLocals();
@@ -377,5 +389,6 @@
System.out.println(localConstantBis(true));
System.out.println(localTriggeringCSE());
System.out.println(intAddition(1, 2, 6));
+ localVisibilityIntoLoop(new double[1][1], new double[1][1]);
}
}