]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/gcc.dg/format/miss-2.c
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / gcc.dg / format / miss-2.c
diff --git a/gcc/testsuite/gcc.dg/format/miss-2.c b/gcc/testsuite/gcc.dg/format/miss-2.c
deleted file mode 100644 (file)
index f3afe24..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-/* Test for warnings for missing format attributes.  Don't warn if no
-   relevant parameters for a format attribute; see c/1017.  */
-/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
-/* { dg-do compile } */
-/* { dg-options "-std=gnu99 -Wformat -Wmissing-format-attribute" } */
-
-#include "format.h"
-
-void
-foo (int i, ...)
-{
-  va_list ap;
-  va_start (ap, i);
-  vprintf ("Foo %s bar %s", ap); /* { dg-bogus "candidate" "bogus printf attribute warning" } */
-  va_end (ap);
-}