[LLVMdev] test suite and int main

Duncan Sands baldrick at free.fr
Wed Nov 2 11:19:39 PDT 2011


Hi Hal,

> 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?

the C backend is totally broken.  You can just ignore it.

Ciao, Duncan.

>
> 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
>




More information about the llvm-dev mailing list