From bf911a9a73fcb85470695f17360b0d9df24a59b5 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 18 Oct 2001 10:28:33 +0200 Subject: * testsuite/gcc.dg/20011015-1.c: New test. From-SVN: r46331 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/20011015-1.c | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/20011015-1.c 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 + + * 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 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); +} -- cgit v1.1