X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2Fformat%2Fattr-6.c;fp=gcc%2Ftestsuite%2Fgcc.dg%2Fformat%2Fattr-6.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=4e95cfb00f6ed8319166960a203c1abca04ff6f7;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.dg/format/attr-6.c b/gcc/testsuite/gcc.dg/format/attr-6.c deleted file mode 100644 index 4e95cfb0..00000000 --- a/gcc/testsuite/gcc.dg/format/attr-6.c +++ /dev/null @@ -1,21 +0,0 @@ -/* Test for format attributes: test default attributes are applied - to implicit declarations. */ -/* Origin: Joseph Myers */ -/* { dg-do compile } */ -/* { dg-options "-std=gnu89 -Wformat" } */ - -/* We can't #include "format.h" here. */ - -/* Technically, none of the format functions should be implicitly declared; - either the implicit type is wrong, the function has variable arguments - or it requires a type declared in a header. However, some bad programming - practice uses implicit declarations of some of these functions. - - Note that printf is not used in this test because of the declaration - of it as a built-in function. */ - -void -foo (const char *s, int *p) -{ - scanf("%ld", p); /* { dg-warning "format" "implicit scanf" } */ -}