This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: more compiler tests
- To: java-patches at sourceware dot cygnus dot com
- Subject: Patch: more compiler tests
- From: Anthony Green <green at cygnus dot com>
- Date: Sun, 16 Apr 2000 22:24:57 -0700
- Reply-to: green at cygnus dot com
The following tests are for PR's gcj/206 and gc/207.
Committed.
2000-04-16 Anthony Green <green@redhat.com>
* libjava.compile/PR207.java: New file.
libjava.compile/PR207_A.java: New file.
libjava.compile/PR206.java: New file.
libjava.compile/PR206_A.java: New file.
Index: libjava/testsuite/libjava.compile//PR206.java
===================================================================
RCS file: PR206.java
diff -N PR206.java
*** /dev/null Tue May 5 13:32:27 1998
--- PR206.java Sun Apr 16 22:22:50 2000
***************
*** 0 ****
--- 1,7 ----
+ class PR206 {
+
+ PR206 (String s)
+ {
+ support.PR206_A x;
+ }
+ }
Index: libjava/testsuite/libjava.compile//PR207.java
===================================================================
RCS file: PR207.java
diff -N PR207.java
*** /dev/null Tue May 5 13:32:27 1998
--- PR207.java Sun Apr 16 22:22:50 2000
***************
*** 0 ****
--- 1,6 ----
+ class PR207 {
+ PR207 (String s)
+ {
+ System.out.println (s + support.PR207_A.hello());
+ }
+ }
Index: libjava/testsuite/libjava.compile//support/PR206_A.java
===================================================================
RCS file: PR206_A.java
diff -N PR206_A.java
*** /dev/null Tue May 5 13:32:27 1998
--- PR206_A.java Sun Apr 16 22:22:50 2000
***************
*** 0 ****
--- 1,8 ----
+ package support;
+
+ public final class PR206_A {
+ static
+ {
+ String s = System.getProperty ("soylent");
+ }
+ }
Index: libjava/testsuite/libjava.compile//support/PR207_A.java
===================================================================
RCS file: PR207_A.java
diff -N PR207_A.java
*** /dev/null Tue May 5 13:32:27 1998
--- PR207_A.java Sun Apr 16 22:22:50 2000
***************
*** 0 ****
--- 1,13 ----
+ package support;
+
+ public final class PR207_A {
+ static
+ {
+ String s = System.getProperty ("soylent");
+ }
+
+ public static String hello ()
+ {
+ return "green";
+ }
+ }