Daily bump.
[gcc.git] / gcc / testsuite / g++.dg / warn / main-2.C
blob6a46ff9bca666bdf801a4f1945e09c849f1bb258
1 // { dg-do compile }
2 // Make sure that the type of f1 does not change 
3 // after the error of main about not returning 
4 // int.
5 // From Pekka Vuorela <pvuorela@iki.fi> 
6 // PR c++/23229
8 void f1();  
9   
10 void  /* { dg-error "1:.\:\:main. must return .int." } */
11 main()
12 {     
13   f1();  
14 }  
15   
16 void f1()  
17 {     
18 }