X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2Fformat%2Fnonlit-1.c;fp=gcc%2Ftestsuite%2Fgcc.dg%2Fformat%2Fnonlit-1.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=af0cd372381fd6761c3c8cb43bd5f6cfd7568889;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.dg/format/nonlit-1.c b/gcc/testsuite/gcc.dg/format/nonlit-1.c deleted file mode 100644 index af0cd372..00000000 --- a/gcc/testsuite/gcc.dg/format/nonlit-1.c +++ /dev/null @@ -1,13 +0,0 @@ -/* Test for warnings for non-string-literal formats. */ -/* Origin: Joseph Myers */ -/* { dg-do compile } */ -/* { dg-options "-std=gnu99 -Wformat -Wformat-nonliteral" } */ - -#include "format.h" - -void -foo (char *s, size_t i) -{ - printf ((const char *)i, i); /* { dg-warning "argument types" "non-literal" } */ - printf (s, i); /* { dg-warning "argument types" "non-literal" } */ -}