summaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2002-09-16 20:13:07 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2002-09-16 20:13:07 +0000
commit85341ddd99c46d8fcc85c1cebc6902310c4f02a7 (patch)
tree28595a498cea666dc9365125cb358fc6b2ed65e7 /gcc/testsuite
parent3ec83083bf1e0fa4a923a4aa1269375893afac7b (diff)
downloadgcc-85341ddd99c46d8fcc85c1cebc6902310c4f02a7.tar.gz
re PR c++/7640 (g++ 3.3 ICE: SEGV in integer_zerop)
.: PR c++/7640 * c-semantics.c (genrtl_do_stmt): Cope with NULL cond. testsuite: * g++.dg/other/do1.C: New test. From-SVN: r57212
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog2
-rw-r--r--gcc/testsuite/g++.dg/other/do1.C12
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 63b882ffbae..b2e49b01abc 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,7 @@
2002-09-16 Nathan Sidwell <nathan@codesourcery.com>
+ * g++.dg/other/do1.C: New test.
+
* g++.dg/template/subst1.C: New test.
2002-09-16 Steve Ellcey <sje@cup.hp.com>
diff --git a/gcc/testsuite/g++.dg/other/do1.C b/gcc/testsuite/g++.dg/other/do1.C
new file mode 100644
index 00000000000..79e55c0cd51
--- /dev/null
+++ b/gcc/testsuite/g++.dg/other/do1.C
@@ -0,0 +1,12 @@
+// { dg-do compile }
+
+// Copyright (C) 2002 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 16 Sep 2002 <nathan@codesourcery.com>
+
+// PR 7640. ICE.
+
+void init ()
+{
+ do { } while (0)
+ obj = 0;
+}