1 // PR c++/67065
2 
3 int main;  // { dg-error "cannot declare" }
4 
foo()5 void foo() { int main; }
6