]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
20000605-1.c: New test.
authorJakub Jelinek <jakub@redhat.com>
Mon, 5 Jun 2000 13:44:29 +0000 (15:44 +0200)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 5 Jun 2000 13:44:29 +0000 (13:44 +0000)
* gcc.c-torture/compile/20000605-1.c: New test.

Co-Authored-By: Nathan Sidwell <nathan@codesourcery.com>
From-SVN: r34403

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20000605-1.c [new file with mode: 0644]

index 11f3f7f148ced65cadbf1968eb33321405e874ed..389f5fde265a7b0264b69414a0d8cfbce246fb0d 100644 (file)
@@ -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 (file)
index 0000000..931c582
--- /dev/null
@@ -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();
+}
+