[LLVMdev] UnitTests/2003-05-31-CastToBool.c

Reid Spencer reid at x10sys.com
Wed Jul 7 07:36:01 PDT 2004


Okay, gotcha .. I'm a little sleepy this morning .. will fix.

On Wed, 2004-07-07 at 05:28, Vladimir Prus wrote:
> 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
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20040707/de5a8280/attachment.sig>


More information about the llvm-dev mailing list