* g++.dg/warn/miss-format-1.C: XFAIL vscanf test on Solaris 2.5.1 to 8.

From-SVN: r105144
This commit is contained in:
Eric Botcazou 2005-10-09 14:59:17 +02:00 committed by Eric Botcazou
parent ad6cc85a18
commit ed883fe3d8
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,7 @@
2005-10-09 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.dg/20050922-1.c: Skip on Solaris 2.5.1 to 9.
* g++.dg/warn/miss-format-1.C: XFAIL vscanf test on Solaris 2.5.1 to 8.
2005-10-07 Andrew Pinski <pinskia@physics.uc.edu>

View File

@ -2,6 +2,7 @@
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
/* { dg-do compile } */
/* { dg-options "-Wmissing-format-attribute" } */
/* { dg-error "not declared" "" { target *-*-solaris2.5.1 *-*-solaris2.[5-8] } 24 } */
#include <stdio.h>
#include <stdarg.h>
@ -20,7 +21,7 @@ bar (const char *fmt, ...)
{
va_list ap;
va_start (ap, fmt);
vscanf (fmt, ap); /* { dg-warning "candidate" "scanf attribute warning" } */
vscanf (fmt, ap); /* { dg-warning "candidate" "scanf attribute warning" { xfail *-*-solaris2.5.1 *-*-solaris2.[5-8] } } */
va_end (ap);
}