Darwin's sekrit fourth argument. This should probably be factored to let targets make target-specific decisions about what main() should look like. Fixes rdar://problem/7414990 or if different platforms have radically different ideas of what they want in llvm-svn: 92128
8 lines
225 B
C++
8 lines
225 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
void // expected-error {{error: 'main' must return 'int'}}
|
|
main( // expected-error {{error: first parameter of 'main' (argument count) must be of type 'int'}}
|
|
float a
|
|
) {
|
|
}
|