]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/gcc.dg/format/z-1.c
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / gcc.dg / format / z-1.c
diff --git a/gcc/testsuite/gcc.dg/format/z-1.c b/gcc/testsuite/gcc.dg/format/z-1.c
deleted file mode 100644 (file)
index 7916201..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/* Test for bugs with %z and %Z formats.  See PRs c/89, c/156, c/376.  */
-/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
-/* { dg-do compile } */
-/* { dg-options "-Wformat" } */
-
-#include "format.h"
-
-size_t
-foo (void)
-{
-  size_t t;
-  scanf ("%zu", &t); /* { dg-bogus "length|format" "bogus scanf warning" } */
-  return t;
-}
-
-void
-bar (size_t t)
-{
-  printf ("%zu\n", t); /* { dg-bogus "format" "bogus printf warning" } */
-}
-
-/* The %Z printf format is an old GNU libc extension to do the same thing.  */
-
-void
-baz (size_t t)
-{
-  printf ("%Zu\n", t); /* { dg-bogus "format" "bogus printf warning" } */
-}