This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fixup testcase for PR47278
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 11 Mar 2011 11:42:53 +0100 (CET)
- Subject: [PATCH] Fixup testcase for PR47278
I forgot to check for visibility support. I've also copied the
testcases to trunk.
Richard.
2011-03-11 Richard Guenther <rguenther@suse.de>
PR tree-optimization/47278
* gcc.dg/torture/pr47278-1.c: Require visibility support.
* gcc.dg/torture/pr47278-2.c: Likewise.
Index: gcc/testsuite/gcc.dg/torture/pr47278-1.c
===================================================================
--- gcc/testsuite/gcc.dg/torture/pr47278-1.c (revision 170867)
+++ gcc/testsuite/gcc.dg/torture/pr47278-1.c (working copy)
@@ -1,4 +1,5 @@
/* { dg-do run } */
+/* { dg-require-visibility "" } */
/* { dg-additional-sources "pr47278-2.c" } */
int foo (void) { return 1; }
Index: gcc/testsuite/gcc.dg/torture/pr47278-2.c
===================================================================
--- gcc/testsuite/gcc.dg/torture/pr47278-2.c (revision 170867)
+++ gcc/testsuite/gcc.dg/torture/pr47278-2.c (working copy)
@@ -1,3 +1,5 @@
+/* { dg-require-visibility "" } */
+
extern void abort (void);
int __attribute__((weak,visibility("hidden"))) foo (void)