From: Jakub Jelinek Date: Thu, 18 Oct 2001 08:28:33 +0000 (+0200) Subject: * testsuite/gcc.dg/20011015-1.c: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bf911a9a73fcb85470695f17360b0d9df24a59b5;p=gcc.git * testsuite/gcc.dg/20011015-1.c: New test. From-SVN: r46331 --- 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 + + * testsuite/gcc.dg/20011015-1.c: New test. + 2001-10-14 Richard Sandiford * 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); +}