Add a testcase for PR target/47369.
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 5 Aug 2011 22:37:32 +0000 (22:37 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 5 Aug 2011 22:37:32 +0000 (15:37 -0700)
2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>

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

From-SVN: r177490

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr47369-1.c [new file with mode: 0644]

index 6ffd81f38bea8f678add187e3cbc117f439c0509..54d0297014e8c0dfc52a0b3029607184b1996c34 100644 (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
diff --git a/gcc/testsuite/gcc.dg/pr47369-1.c b/gcc/testsuite/gcc.dg/pr47369-1.c
new file mode 100644 (file)
index 0000000..117b03b
--- /dev/null
@@ -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]));
+}