summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/20011015-1.c17
2 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 6a35de6024c..b05c655442f 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2001-10-18 Jakub Jelinek <jakub@redhat.com>
+
+ * testsuite/gcc.dg/20011015-1.c: New test.
+
2001-10-14 Richard Sandiford <rsandifo@redhat.com>
* g++.dg/template/unify2.C: New test.
diff --git a/gcc/testsuite/gcc.dg/20011015-1.c b/gcc/testsuite/gcc.dg/20011015-1.c
new file mode 100644
index 00000000000..0b751bf409d
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20011015-1.c
@@ -0,0 +1,17 @@
+/* { dg-do compile } */
+/* { dg-options "-O3 -std=gnu99" } */
+
+char foo (char *x)
+{
+ return *x;
+}
+
+void bar (char *x)
+{
+ void *arr[foo (x)] __attribute__((unused));
+}
+
+void baz (char *x)
+{
+ bar (x);
+}