X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2Fformat%2Fz-1.c;fp=gcc%2Ftestsuite%2Fgcc.dg%2Fformat%2Fz-1.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=7916201ff7d4eef17849523dcd1408c8ad006d30;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.dg/format/z-1.c b/gcc/testsuite/gcc.dg/format/z-1.c deleted file mode 100644 index 7916201f..00000000 --- a/gcc/testsuite/gcc.dg/format/z-1.c +++ /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 */ -/* { 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" } */ -}