forked from INRIA/spoon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add test reproducing issue INRIA#4021 (INRIA#4030)
- Loading branch information
1 parent
e90a944
commit 33d3fc3
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/test/resources/superCall/SuperCallSniperTestClass.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package superCall; | ||
|
||
/** | ||
* Test class to reproduce issue #4021 | ||
*/ | ||
public class SuperCallSniperTestClass { | ||
int m = 0; | ||
|
||
public int a(int x) { | ||
return x; | ||
} | ||
} | ||
|
||
class Child extends SuperCallSniperTestClass { | ||
public int b(int x) { | ||
return super.a(-x); | ||
} | ||
} |