[LLVMdev] UnitTests/2003-05-31-CastToBool.c
Vladimir Prus
ghost at cs.msu.su
Wed Jul 7 07:30:01 PDT 2004
Reid Spencer wrote:
> This program is in error. Either the format specifier needs to be %lld
> or the argument value X needs to be casted to type long. This will
> compile fine but it probably won't work at runtime because printf is
> expecting a long, not a long long. I think your backend producing "wrong
> results" is actually correct :)
Yea, that's what I'm trying to say.
> Most modern C/C++ compilers will detect this for you at compile time.
> What compiler are you using?
Well, LLVM gcc frontend ;-) I mean this is *existing* test, not the one I
wrote, and so this is something to be fixed in CVS.
- Volodya
More information about the llvm-dev
mailing list