summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20000605-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/20000605-1.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000605-1.c22
1 files changed, 22 insertions, 0 deletions
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 000000000..1fe588234
--- /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 flavors 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();
+}
+