diff options
Diffstat (limited to 'libjava/testsuite/libjava.compile')
-rw-r--r-- | libjava/testsuite/libjava.compile/pr10459.java | 10 | ||||
-rw-r--r-- | libjava/testsuite/libjava.compile/pr10459_2.java | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/pr10459.java b/libjava/testsuite/libjava.compile/pr10459.java new file mode 100644 index 00000000000..5bcc09c7326 --- /dev/null +++ b/libjava/testsuite/libjava.compile/pr10459.java @@ -0,0 +1,10 @@ +public class pr10459 +{ + pr10459 x; + + public void aMethod() throws Throwable + { + for (; ;x.clone().clone()) + ; + } +} diff --git a/libjava/testsuite/libjava.compile/pr10459_2.java b/libjava/testsuite/libjava.compile/pr10459_2.java new file mode 100644 index 00000000000..5b878ca0c27 --- /dev/null +++ b/libjava/testsuite/libjava.compile/pr10459_2.java @@ -0,0 +1,10 @@ +public class pr10459_2 +{ + pr10459_2 x; + + public void aMethod() throws Throwable + { + for (; ;x.clone().clone()) + break; + } +} |