summaryrefslogtreecommitdiff
path: root/clang/test/CXX/basic/basic.start/basic.start.main/p2f.cpp
blob: ea5a752a191cdabb38398e05303f3f29c0453c46 (about) (plain)
1
2
3
4
5
6
7
// RUN: %clang_cc1 -fsyntax-only -verify %s 

void  // expected-error {{'main' must return 'int'}}
main( // expected-error {{first parameter of 'main' (argument count) must be of type 'int'}}
     float a
) {
}