]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/gcc.dg/format/nonlit-1.c
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / gcc.dg / format / nonlit-1.c
diff --git a/gcc/testsuite/gcc.dg/format/nonlit-1.c b/gcc/testsuite/gcc.dg/format/nonlit-1.c
deleted file mode 100644 (file)
index af0cd37..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-/* Test for warnings for non-string-literal formats.  */
-/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
-/* { 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" } */
-}