OSDN Git Service

* testsuite/gcc.dg/20011015-1.c: New test.
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Oct 2001 08:28:33 +0000 (08:28 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Oct 2001 08:28:33 +0000 (08:28 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46331 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20011015-1.c [new file with mode: 0644]

index 6a35de6..b05c655 100644 (file)
@@ -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 (file)
index 0000000..0b751bf
--- /dev/null
@@ -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);
+}