aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-07 07:50:31 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-07 07:50:31 +0000
commitf55468a911eb0e5fc06815f7c6cf2445d4e32d99 (patch)
tree540f839c3a68e41186b0146c5e26518a051c2c02 /gcc/testsuite/g++.dg/other
parent11922e445682992f098967ee879101cab66f6000 (diff)
* g++.dg/other/unreachable-1.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91804 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/other')
-rw-r--r--gcc/testsuite/g++.dg/other/unreachable1.C11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/unreachable1.C b/gcc/testsuite/g++.dg/other/unreachable1.C
new file mode 100644
index 00000000000..da468a099f6
--- /dev/null
+++ b/gcc/testsuite/g++.dg/other/unreachable1.C
@@ -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;
+}