aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/gcc.dg/format/diag-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/gcc.dg/format/diag-2.c')
-rw-r--r--gcc-4.8.1/gcc/testsuite/gcc.dg/format/diag-2.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/gcc.dg/format/diag-2.c b/gcc-4.8.1/gcc/testsuite/gcc.dg/format/diag-2.c
deleted file mode 100644
index e7578d3f0..000000000
--- a/gcc-4.8.1/gcc/testsuite/gcc.dg/format/diag-2.c
+++ /dev/null
@@ -1,13 +0,0 @@
-/* Test for format diagnostics. Proper type names (bug 1027). */
-/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
-/* { dg-do compile } */
-/* { dg-options "-std=gnu99 -Wformat" } */
-
-#include "format.h"
-
-void
-foo (double d)
-{
- printf ("%s", &d); /* { dg-warning "char \\*" "correct arg type" } */
- scanf ("%zu", &d); /* { dg-warning "size_t \\*" "correct arg type" } */
-}