diff options
Diffstat (limited to 'tests/errors/Goto.java')
-rw-r--r-- | tests/errors/Goto.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/errors/Goto.java b/tests/errors/Goto.java new file mode 100644 index 000000000..a597eb789 --- /dev/null +++ b/tests/errors/Goto.java @@ -0,0 +1,16 @@ +import org.aspectj.testing.*; +public class Goto { + public static void main(String[] args) { + int goto = 13; + Tester.check(false, "shouldn't have compiled"); + } + + public static void testme1() { + int i = goto + 1; + int j = Goto.goto + 1; + } + + public static void testme2() { + int j = Goto.goto + 1; + } +} |