* testsuite/gcc.dg/20011015-1.c: New test.
From-SVN: r46331
This commit is contained in:
parent
87992ab6da
commit
bf911a9a73
@ -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.
|
||||
|
17
gcc/testsuite/gcc.dg/20011015-1.c
Normal file
17
gcc/testsuite/gcc.dg/20011015-1.c
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user