]> gcc.gnu.org Git - gcc.git/commitdiff
* g++.dg/warn/miss-format-1.C: XFAIL vscanf test on Solaris 2.5.1 to 8.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Sun, 9 Oct 2005 12:59:17 +0000 (14:59 +0200)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 9 Oct 2005 12:59:17 +0000 (12:59 +0000)
From-SVN: r105144

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/miss-format-1.C

index 6316059c4fcffae969a90d4f8af8f3fba95e002e..b8abbeda19d7a0f3af1adc42a18105cc7eb8455f 100644 (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>
 
index f69e18fb0a66104b4704dead80a0d9cf795b3649..56a5c7b1383f744e027a12eb2655fa07a01623ee 100644 (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);
 }
 
This page took 0.081847 seconds and 5 git commands to generate.