diff options
author | Jakub Jelinek <jakub@redhat.com> | 2001-10-18 10:28:33 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2001-10-18 10:28:33 +0200 |
commit | bf911a9a73fcb85470695f17360b0d9df24a59b5 (patch) | |
tree | 13ceb6e3f8d659a07365b91f202594e2b4c900e4 | |
parent | 87992ab6da08f1ad1854e9c176422b80a713d3f8 (diff) | |
download | gcc-bf911a9a73fcb85470695f17360b0d9df24a59b5.zip gcc-bf911a9a73fcb85470695f17360b0d9df24a59b5.tar.gz gcc-bf911a9a73fcb85470695f17360b0d9df24a59b5.tar.bz2 |
* testsuite/gcc.dg/20011015-1.c: New test.
From-SVN: r46331
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/20011015-1.c | 17 |
2 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6a35de6..b05c655 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 0000000..0b751bf --- /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); +} |