aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/format
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2004-11-14 23:24:14 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2004-11-14 23:24:14 +0000
commitefcc66f02cd0b34ee0e2a08312d7ab8e0405a556 (patch)
treea201846a39be53f6e3ecd20c4823e63363353116 /gcc/testsuite/gcc.dg/format
parent509228203e929a5aa3205aaa838700235187dc1d (diff)
downloadgcc-efcc66f02cd0b34ee0e2a08312d7ab8e0405a556.zip
gcc-efcc66f02cd0b34ee0e2a08312d7ab8e0405a556.tar.gz
gcc-efcc66f02cd0b34ee0e2a08312d7ab8e0405a556.tar.bz2
c99-flex-array-5.c, [...]: New tests.
* gcc.dg/c99-flex-array-5.c, gcc.dg/c99-fordecl-3.c, gcc.dg/comp-goto-1.c, gcc.dg/comp-goto-2.c, gcc.dg/comp-goto-3.c, gcc.dg/format/strfmon-2.c, gcc.dg/pointer-arith-1.c, gcc.dg/pointer-arith-2.c, gcc.dg/pointer-arith-3.c, gcc.dg/pointer-arith-4.c, gcc.dg/switch-5.c, gcc.dg/switch-6.c, gcc.dg/switch-7.c: New tests. From-SVN: r90637
Diffstat (limited to 'gcc/testsuite/gcc.dg/format')
-rw-r--r--gcc/testsuite/gcc.dg/format/strfmon-2.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/format/strfmon-2.c b/gcc/testsuite/gcc.dg/format/strfmon-2.c
new file mode 100644
index 0000000..1ecef71
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/format/strfmon-2.c
@@ -0,0 +1,13 @@
+/* Test for strfmon format checking. Test for missing fill character
+ at end of format. */
+/* Origin: Joseph Myers <joseph@codesourcery.com> */
+/* { dg-do compile } */
+/* { dg-options "-std=gnu99 -Wformat" } */
+
+#include "format.h"
+
+void
+foo (char *s, size_t m)
+{
+ strfmon (s, m, "%="); /* { dg-warning "missing fill character at end" } */
+}