summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/format/strfmon-2.c
blob: 1ecef711d34e3c16e5c03cb6c72ebd59b8b75fb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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" } */
}