[LLVMdev] test suite and int main

Hal Finkel hfinkel at anl.gov
Wed Nov 2 10:38:03 PDT 2011


I'm just setting up the test suite, and I'm seeing a lot of failures
from main() not returning int, etc. in some of the tests. Is this
normal?

For example:
Output/2003-07-09-LoadShorts.cbe.c:117:1: error: 'main' must return
'int'
unsigned int main(unsigned int llvm_cbe_argc, unsigned char
**llvm_cbe_argv);
^
Output/2003-07-09-LoadShorts.cbe.c:117:14: error: first parameter of
'main' (argument count) must be of type 'int'
unsigned int main(unsigned int llvm_cbe_argc, unsigned char
**llvm_cbe_argv);
             ^
Output/2003-07-09-LoadShorts.cbe.c:117:14: error: second parameter of
'main' (argument array) must be of type 'char **'

Thanks again,
Hal

-- 
Hal Finkel
Postdoctoral Appointee
Leadership Computing Facility
Argonne National Laboratory




More information about the llvm-dev mailing list