Lines Matching refs:main
6 int main() {
10 // expected-error@+2 {{static declaration of 'main' follows non-static declaration}}
11 // expected-warning@+1 {{'main' should not be declared static}}
12 static int main() {
17 // expected-error@+2 {{redefinition of 'main'}}
18 // expected-error@+1 {{'main' is not allowed to be declared inline}}
19 inline int main() {
24 // expected-warning@+5 {{function 'main' declared 'noreturn' should not return}}
25 // expected-warning@+2 {{'main' is not allowed to be declared _Noreturn}}
27 _Noreturn int main() {