]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/gcc.dg/format/c99-scanf-3.c
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / gcc.dg / format / c99-scanf-3.c
diff --git a/gcc/testsuite/gcc.dg/format/c99-scanf-3.c b/gcc/testsuite/gcc.dg/format/c99-scanf-3.c
deleted file mode 100644 (file)
index 091a3ea..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/* Test for scanf formats.  Test that the C99 functions get their default
-   attributes in strict C99 mode, but the gettext functions do not.
-*/
-/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
-/* { dg-do compile } */
-/* { dg-options "-std=iso9899:1999 -pedantic -Wformat" } */
-
-#include "format.h"
-
-void
-foo (int *ip, char *s, va_list v0, va_list v1, va_list v2, va_list v3,
-     va_list v4, va_list v5)
-{
-  fscanf (stdin, "%d", ip);
-  fscanf (stdin, "%ld", ip); /* { dg-warning "format" "fscanf" } */
-  scanf ("%d", ip);
-  scanf ("%ld", ip); /* { dg-warning "format" "scanf" } */
-  sscanf (s, "%d", ip);
-  sscanf (s, "%ld", ip); /* { dg-warning "format" "sscanf" } */
-  vfscanf (stdin, "%d", v0);
-  vfscanf (stdin, "%Y", v1); /* { dg-warning "format" "vfscanf" } */
-  vscanf ("%d", v2);
-  vscanf ("%Y", v3); /* { dg-warning "format" "vscanf" } */
-  vsscanf (s, "%d", v4);
-  vsscanf (s, "%Y", v5); /* { dg-warning "format" "vsscanf" } */
-  scanf (gettext ("%d"), ip);
-  scanf (gettext ("%ld"), ip);
-  scanf (dgettext ("", "%d"), ip);
-  scanf (dgettext ("", "%ld"), ip);
-  scanf (dcgettext ("", "%d", 0), ip);
-  scanf (dcgettext ("", "%ld", 0), ip);
-}