Fix handling of debug information for common return block Change-Id: Idf3f930c8dbd16347edbf1ce6c5bd845129c4d27
diff --git a/src/test/debugTestResources/Locals.java b/src/test/debugTestResources/Locals.java index d42dd61..890cb85 100644 --- a/src/test/debugTestResources/Locals.java +++ b/src/test/debugTestResources/Locals.java
@@ -244,6 +244,24 @@ return sum + x + y; } + public static int argumentLiveAtReturn(int x) { + switch (x) { + case 0: + return 0; + case 1: + return 0; + case 2: + return 0; + case 100: + return 1; + case 101: + return 1; + case 102: + return 1; + } + return -1; + } + public static void main(String[] args) { noLocals(); unusedLocals(); @@ -259,5 +277,6 @@ stepNonEmptyForLoopBody(3); tempInCase(42); localSwap(1, 2); + argumentLiveAtReturn(-1); } }