pr47917.c: Add -D_XOPEN_SOURCE=500 to dg-options for mips-sgi-irix6.5.

* gcc.dg/torture/pr47917.c: Add -D_XOPEN_SOURCE=500 to dg-options
	for mips-sgi-irix6.5.
	Replace snprintf prototype by <stdio.h>.

From-SVN: r171456
This commit is contained in:
Rainer Orth 2011-03-25 15:38:27 +00:00 committed by Rainer Orth
parent 34019e282b
commit e560509f7b
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2011-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* gcc.dg/torture/pr47917.c: Add -D_XOPEN_SOURCE=500 to dg-options
for mips-sgi-irix6.5.
Replace snprintf prototype by <stdio.h>.
2011-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR testsuite/48283

View File

@ -1,11 +1,12 @@
/* { dg-do run } */
/* { dg-options "-std=c99" } */
/* { dg-options "-std=c99 -D_XOPEN_SOURCE=500" { target mips-sgi-irix6.5 } } */
/* { dg-xfail-if "no C99 snprintf function" { *-*-hpux10* } } */
/* { dg-xfail-run-if "non-conforming C99 snprintf" { *-*-hpux11.[012]* } } */
/* PR middle-end/47917 */
extern int snprintf (char *, __SIZE_TYPE__, const char *, ...);
#include <stdio.h>
extern int memcmp (const void *, const void *, __SIZE_TYPE__);
extern void abort (void);