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
c-decl.c (start_decl): Do not warn if variables is named as main and is a local variable.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
wmain.c
blob
06fc26fd398127f594afd5000f5f2bbb82402c23
1
/* { dg-do compile } */
2
/* { dg-options "-Wall" } */
3
4
int
main
;
/* { dg-warning "'main' is usually a function" } */
5
6
int
foo
()
7
{
8
int
main
=
1
;
/* { dg-bogus "'main' is usually a function" } */
9
return
main
;
10
}