Don't require compatibility of array element types. R=ager Bug: 65039701 Change-Id: Ibe0a60a52bb8adf577ad78b381bf528c7838bb64
diff --git a/src/test/debugTestResources/Locals.java b/src/test/debugTestResources/Locals.java index 109c43e..56613b3 100644 --- a/src/test/debugTestResources/Locals.java +++ b/src/test/debugTestResources/Locals.java
@@ -300,6 +300,14 @@ return -1; } + public static String regression65039701(boolean createIntNotLong) { + Object a = createIntNotLong ? new int[1] : new long[1]; + if (a instanceof int []) { + ((int [])a)[0] = 0; + } + return "OK"; + } + public static void main(String[] args) { noLocals(); unusedLocals(); @@ -318,5 +326,6 @@ argumentLiveAtReturn(-1); switchRewriteToIfs(1); switchRewriteToSwitches(1); + regression65039701(true); } }