mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-29 23:15:55 +08:00
* 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:
parent
ad6cc85a18
commit
ed883fe3d8
@ -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>
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user