aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile/N19990317.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/testsuite/libjava.compile/N19990317.java')
-rw-r--r--libjava/testsuite/libjava.compile/N19990317.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/N19990317.java b/libjava/testsuite/libjava.compile/N19990317.java
new file mode 100644
index 0000000..669da3b
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/N19990317.java
@@ -0,0 +1,23 @@
+/*--------------------------------------------------------------------------*/
+/* Name : N19990317.java */
+/* : */
+/* Cause : When initialize valiable whose name is equal to method */
+/* : return value, error. */
+/* : */
+/* Message : Internal compiler error: program jc1 got */
+/* : fatal signal 11 */
+/*--------------------------------------------------------------------------*/
+
+class Point {}
+
+public class N19990317 {
+
+ Point func() {
+ return null;
+ }
+
+ public static void main(String[] args) {
+ int Point = 2;
+ System.out.println("OK");
+ }
+}