repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix broken MinGW build of gcc.c
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
format5.C
blob
e219f88109269ca0902c2321a9082d7c958d8254
1
// PR c++/38980
2
// { dg-options "-Wformat" }
3
4
extern "C"
5
int printf(const char *format, ...) __attribute__((format(printf, 1, 2) ));
6
7
const char fmt1[] = "Hello, %s";
8
9
void f()
10
{
11
printf(fmt1, 3); // { dg-warning "expects argument" }
12
}