Skip to content

Commit 62b52ba

Browse files
Merge pull request #1598 from peterschrammel/simplify-string-const-equalities
Simplify equalities of constants
2 parents 81cc65f + a656e7b commit 62b52ba

File tree

17 files changed

+102
-42
lines changed

17 files changed

+102
-42
lines changed
222 Bytes
Binary file not shown.
207 Bytes
Binary file not shown.
207 Bytes
Binary file not shown.
164 Bytes
Binary file not shown.
164 Bytes
Binary file not shown.
354 Bytes
Binary file not shown.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
public class Test {
2+
public static void runF(A x) {
3+
x.f();
4+
}
5+
6+
public static void main() {
7+
A y = new D();
8+
runF(y);
9+
}
10+
}
11+
12+
class A {
13+
void f() { }
14+
}
15+
16+
17+
class B extends A {
18+
void f() { }
19+
}
20+
21+
class C extends A {
22+
void f() { }
23+
}
24+
25+
class D extends C {
26+
}
27+
28+
class E extends B {
29+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CORE
2+
Test.class
3+
--program-only
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
C\.f
7+
--
8+
A\.f
9+
B\.f
10+
D\.f
11+
E\.f
222 Bytes
Binary file not shown.
207 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)