diff mbox

[testsuite] Require visibility support in gcc.dg/pr47276.c

Message ID yddfwsd9ich.fsf@manam.CeBiTec.Uni-Bielefeld.DE
State New
Headers show

Commit Message

Rainer Orth Jan. 28, 2011, 3:08 p.m. UTC
The new gcc.dg/pr47276.c test fails on Solaris 9/x86 with Sun as:

FAIL: gcc.dg/pr47276.c (test for excess errors)
Excess errors:
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/pr47276.c:18:1: warning: visibi
lity attribute not supported in this configuration; ignored [-Wattributes]
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/pr47276.c:30:1: warning: visibi
lity attribute not supported in this configuration; ignored [-Wattributes]
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/pr47276.c:30:1: warning: visibi
lity attribute not supported in this configuration; ignored [-Wattributes]

It fails to declare that it requires visibility support.  Fixed as
follows, tested with the appropriate runtest invocation, installed as
obvious.

	Rainer


2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* gcc.dg/pr47276.c: Add dg-require-visibility.
diff mbox

Patch

diff -r 4038f5696767 gcc/testsuite/gcc.dg/pr47276.c
--- a/gcc/testsuite/gcc.dg/pr47276.c	Thu Jan 27 18:36:03 2011 +0000
+++ b/gcc/testsuite/gcc.dg/pr47276.c	Fri Jan 28 16:04:35 2011 +0100
@@ -1,5 +1,6 @@ 
 /* { dg-do compile } */
 /* { dg-require-alias "" } */
+/* { dg-require-visibility "" } */
 extern void syslog (int __pri, __const char *__fmt, ...)
      __attribute__ ((__format__ (__printf__, 2, 3)));
 extern void vsyslog (int __pri, __const char *__fmt, int __ap)