projects
/
platform
/
upstream
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
c-family: Support format checking C2X %b, %B formats
[platform/upstream/gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
format
/
c11-scanf-1.c
1
/* Test for printf formats: rejection of C2X formats in pedantic mode. */
2
/* { dg-do compile } */
3
/* { dg-options "-std=c11 -pedantic -Wformat" } */
4
5
#include "format.h"
6
7
void
8
foo (unsigned int *uip)
9
{
10
scanf ("%b", uip); /* { dg-warning "C" } */
11
}