]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Tue, 7 Dec 2004 07:54:00 +0000 (07:54 +0000)
committerNo Author <no-author@gcc.gnu.org>
Tue, 7 Dec 2004 07:54:00 +0000 (07:54 +0000)
'gcc-3_4-branch'.

From-SVN: r91805

gcc/testsuite/g++.dg/other/unreachable1.C [new file with mode: 0644]
libjava/testsuite/libjava.compile/PR14853.java [new file with mode: 0644]
libjava/testsuite/libjava.compile/PR14853.xfail [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/other/unreachable1.C b/gcc/testsuite/g++.dg/other/unreachable1.C
new file mode 100644 (file)
index 0000000..da468a0
--- /dev/null
@@ -0,0 +1,11 @@
+// PR middle-end/17827
+// Origin: Andre Woebbeking <Woebbeking@web.de>
+// Testcase by Volker Reichelt <reichelt@gcc.gnu.org>
+// { dg-do compile }
+
+void foo()
+{
+  if (false)
+    if (int i=0)
+      int j=i;
+}
diff --git a/libjava/testsuite/libjava.compile/PR14853.java b/libjava/testsuite/libjava.compile/PR14853.java
new file mode 100644 (file)
index 0000000..a800c52
--- /dev/null
@@ -0,0 +1,17 @@
+class tt
+{
+  static final tt tt1 = new tt();
+  tt()
+  {
+  }
+}
+
+public class PR14853
+{
+  public static void main (String[] args)
+  {
+    // This is an invalid assignment.  gcj would get confused in
+    // definite assignment when compiling to object code.
+    tt.tt1 = new tt();
+  }
+}
diff --git a/libjava/testsuite/libjava.compile/PR14853.xfail b/libjava/testsuite/libjava.compile/PR14853.xfail
new file mode 100644 (file)
index 0000000..e3b083b
--- /dev/null
@@ -0,0 +1 @@
+shouldfail