From 8c14fefc3fd3d3417e3241330ccb1d4337196191 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 5 Aug 2011 22:37:32 +0000 Subject: [PATCH] Add a testcase for PR target/47369. 2011-08-05 H.J. Lu PR target/47369 * gcc.dg/pr47369-1.c: New. From-SVN: r177490 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/pr47369-1.c | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/pr47369-1.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6ffd81f38be..54d0297014e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-08-05 H.J. Lu + + PR target/47369 + * gcc.dg/pr47369-1.c: New. + 2011-08-05 H.J. Lu PR middle-end/47364 diff --git a/gcc/testsuite/gcc.dg/pr47369-1.c b/gcc/testsuite/gcc.dg/pr47369-1.c new file mode 100644 index 00000000000..117b03bfa3c --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr47369-1.c @@ -0,0 +1,13 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target fpic } */ +/* { dg-options "-O2 -fPIC" } */ + +struct FILE +{ + int x; +}; +extern struct FILE __sF[]; +extern void bar (struct FILE *); +void dlmalloc_stats() { + bar ((&__sF[2])); +} -- 2.30.2