Add a testcase for PR target/47369.

2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/47369
	* gcc.dg/pr47369-1.c: New.

From-SVN: r177490
This commit is contained in:
H.J. Lu 2011-08-05 22:37:32 +00:00 committed by H.J. Lu
parent 9a55e3f6c6
commit 8c14fefc3f
2 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
PR target/47369
* gcc.dg/pr47369-1.c: New.
2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/47364

View File

@ -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]));
}