aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/gcc.dg/format/c90-printf-3.c
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2016-02-24 13:48:45 -0800
committerDan Albert <danalbert@google.com>2016-02-24 13:51:18 -0800
commitb9de1157289455b0ca26daff519d4a0ddcd1fa13 (patch)
tree4c56cc0a34b91f17033a40a455f26652304f7b8d /gcc-4.8.1/gcc/testsuite/gcc.dg/format/c90-printf-3.c
parent098157a754787181cfa10e71325832448ddcea98 (diff)
downloadtoolchain_gcc-b9de1157289455b0ca26daff519d4a0ddcd1fa13.tar.gz
toolchain_gcc-b9de1157289455b0ca26daff519d4a0ddcd1fa13.tar.bz2
toolchain_gcc-b9de1157289455b0ca26daff519d4a0ddcd1fa13.zip
Update 4.8.1 to 4.8.3.
My previous drop was the wrong version. The platform mingw is currently using 4.8.3, not 4.8.1 (not sure how I got that wrong). From ftp://ftp.gnu.org/gnu/gcc/gcc-4.8.3/gcc-4.8.3.tar.bz2. Bug: http://b/26523949 Change-Id: Id85f1bdcbbaf78c7d0b5a69e74c798a08f341c35
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/gcc.dg/format/c90-printf-3.c')
-rw-r--r--gcc-4.8.1/gcc/testsuite/gcc.dg/format/c90-printf-3.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/gcc.dg/format/c90-printf-3.c b/gcc-4.8.1/gcc/testsuite/gcc.dg/format/c90-printf-3.c
deleted file mode 100644
index bf48f3114..000000000
--- a/gcc-4.8.1/gcc/testsuite/gcc.dg/format/c90-printf-3.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* Test for printf formats. Test that the C90 functions get their default
- attributes in strict C90 mode, but the C99 and gettext functions
- do not.
-*/
-/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
-/* { dg-do compile { target { ! *-*-mingw* } } } */
-/* { dg-options "-std=iso9899:1990 -pedantic -Wformat" } */
-
-#include "format.h"
-
-void
-foo (int i, char *s, size_t n, va_list v0, va_list v1, va_list v2, va_list v3,
- va_list v4, va_list v5, va_list v6, va_list v7, va_list v8)
-{
- fprintf (stdout, "%d", i);
- fprintf (stdout, "%ld", i); /* { dg-warning "format" "fprintf" } */
- printf ("%d", i);
- printf ("%ld", i); /* { dg-warning "format" "printf" } */
- /* The "unlocked" functions shouldn't warn in c90 mode. */
- fprintf_unlocked (stdout, "%ld", i); /* { dg-bogus "format" "fprintf_unlocked" } */
- printf_unlocked ("%ld", i); /* { dg-bogus "format" "printf_unlocked" } */
- sprintf (s, "%d", i);
- sprintf (s, "%ld", i); /* { dg-warning "format" "sprintf" } */
- vfprintf (stdout, "%d", v0);
- vfprintf (stdout, "%Y", v1); /* { dg-warning "format" "vfprintf" } */
- vprintf ("%d", v2);
- vprintf ("%Y", v3); /* { dg-warning "format" "vprintf" } */
- /* The following used to give a bogus warning. */
- vprintf ("%*.*d", v8);
- vsprintf (s, "%d", v4);
- vsprintf (s, "%Y", v5); /* { dg-warning "format" "vsprintf" } */
- snprintf (s, n, "%d", i);
- snprintf (s, n, "%ld", i);
- vsnprintf (s, n, "%d", v6);
- vsnprintf (s, n, "%Y", v7);
- printf (gettext ("%d"), i);
- printf (gettext ("%ld"), i);
- printf (dgettext ("", "%d"), i);
- printf (dgettext ("", "%ld"), i);
- printf (dcgettext ("", "%d", 0), i);
- printf (dcgettext ("", "%ld", 0), i);
-}