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
Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
printf1.C
blob
65fda3fbde703333014e35565593de86658ed39b
1
// { dg-do assemble }
2
// { dg-options "-Wall" }
3
4
struct a
5
{
6
void x(char *f,...) __attribute__((format(printf,2,3)));
7
};
8
9
int main()
10
{
11
a A;
12
A.x("%d"); // { dg-warning "" } too few arguments for format
13
return 0;
14
}