CSE must not remove instructions related to debug info Change-Id: Ic20bbfda839c54859a3b31c9cc9b9ae88261158c
diff --git a/src/test/debugTestResources/Locals.java b/src/test/debugTestResources/Locals.java index 1221234..205ae64 100644 --- a/src/test/debugTestResources/Locals.java +++ b/src/test/debugTestResources/Locals.java
@@ -338,6 +338,14 @@ return result; } + public static int localTriggeringCSE() { + int a = 1; + int b = 3; + int c = a + b; + int d = a + b; + return c + d; + } + public static void main(String[] args) { noLocals(); unusedLocals(); @@ -360,5 +368,6 @@ regression65066975(false); System.out.println(localConstant(true)); System.out.println(localConstantBis(true)); + System.out.println(localTriggeringCSE()); } }