diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-18 08:28:33 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-18 08:28:33 +0000 |
commit | 68201f07012af18f4a4c856124fcbab6bcf3ab28 (patch) | |
tree | 13ceb6e3f8d659a07365b91f202594e2b4c900e4 | |
parent | c79ebc0b547b244933b75c47c1d231c7bf4bc6c5 (diff) | |
download | gcc-68201f07012af18f4a4c856124fcbab6bcf3ab28.tar.gz |
* testsuite/gcc.dg/20011015-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46331 138bc75d-0d04-0410-961f-82ee72b054a4
-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 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); +} |