* testsuite/gcc.dg/20011015-1.c: New test.

From-SVN: r46331
This commit is contained in:
Jakub Jelinek 2001-10-18 10:28:33 +02:00 committed by Jakub Jelinek
parent 87992ab6da
commit bf911a9a73
2 changed files with 21 additions and 0 deletions

View 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.

View File

@ -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);
}