aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2000-06-05 15:44:29 +0200
committerNathan Sidwell <nathan@gcc.gnu.org>2000-06-05 13:44:29 +0000
commit1687c88ca9da87af6065e1f34093636cba3303c2 (patch)
tree1aec5f2d76fe3e74447e606d990ccf22a7bf99a8
parent71653180cfbab88d037392402436b4ab0356151e (diff)
downloadgcc-1687c88ca9da87af6065e1f34093636cba3303c2.zip
gcc-1687c88ca9da87af6065e1f34093636cba3303c2.tar.gz
gcc-1687c88ca9da87af6065e1f34093636cba3303c2.tar.bz2
20000605-1.c: New test.
* gcc.c-torture/compile/20000605-1.c: New test. Co-Authored-By: Nathan Sidwell <nathan@codesourcery.com> From-SVN: r34403
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000605-1.c22
2 files changed, 27 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 11f3f7f..389f5fd 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2000-06-05 Jakub Jelinek <jakub@redhat.com>
+ Nathan Sidwell <nathan@codesourcery.com>
+
+ * gcc.c-torture/compile/20000605-1.c: New test.
+
2000-06-03 David Billinghurst <David Billinghurst@riotinto.com.au>
* g77.f-torture/compile/20000601-1.f: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000605-1.c b/gcc/testsuite/gcc.c-torture/compile/20000605-1.c
new file mode 100644
index 0000000..931c582
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/20000605-1.c
@@ -0,0 +1,22 @@
+/* Copyright (C) 2000 Free Software Foundation */
+
+/* make sure we don't get confused by various flavours of void */
+
+/* Origin: Jakub Jelinek <jakub@redhat.com>
+ * Joel Sherrill <joel.sherrill@OARcorp.com>
+ */
+
+typedef void foo;
+foo bar(void);
+void baz(void)
+{
+ bar();
+}
+
+void volatile f();
+
+int x()
+{
+ f();
+}
+