summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libjava/testsuite/libjava.compile/PR206.java7
-rw-r--r--libjava/testsuite/libjava.compile/PR207.java6
-rw-r--r--libjava/testsuite/libjava.compile/support/PR206_A.java8
-rw-r--r--libjava/testsuite/libjava.compile/support/PR207_A.java13
4 files changed, 34 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/PR206.java b/libjava/testsuite/libjava.compile/PR206.java
new file mode 100644
index 00000000000..018391271ad
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/PR206.java
@@ -0,0 +1,7 @@
+class PR206 {
+
+ PR206 (String s)
+ {
+ support.PR206_A x;
+ }
+}
diff --git a/libjava/testsuite/libjava.compile/PR207.java b/libjava/testsuite/libjava.compile/PR207.java
new file mode 100644
index 00000000000..97b10f0aa27
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/PR207.java
@@ -0,0 +1,6 @@
+class PR207 {
+ PR207 (String s)
+ {
+ System.out.println (s + support.PR207_A.hello());
+ }
+}
diff --git a/libjava/testsuite/libjava.compile/support/PR206_A.java b/libjava/testsuite/libjava.compile/support/PR206_A.java
new file mode 100644
index 00000000000..dffd498286b
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/support/PR206_A.java
@@ -0,0 +1,8 @@
+package support;
+
+public final class PR206_A {
+ static
+ {
+ String s = System.getProperty ("soylent");
+ }
+}
diff --git a/libjava/testsuite/libjava.compile/support/PR207_A.java b/libjava/testsuite/libjava.compile/support/PR207_A.java
new file mode 100644
index 00000000000..1d465f5222e
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/support/PR207_A.java
@@ -0,0 +1,13 @@
+package support;
+
+public final class PR207_A {
+ static
+ {
+ String s = System.getProperty ("soylent");
+ }
+
+ public static String hello ()
+ {
+ return "green";
+ }
+}