[cfe-dev] make test fails: Lexer/11-27-2007-FloatLiterals.c

Ted Kremenek kremenek at apple.com
Thu Nov 29 10:38:10 PST 2007


"make test" now fails for the test: Lexer/11-27-2007-FloatLiterals.c

The test case:

(kremenek at grue:Lexer)$ cat 11-27-2007-FloatLiterals.c
// RUN: clang %s -emit-llvm 2>&1 | grep 0x3BFD83C940000000 | count 2
// RUN: clang %s -emit-llvm 2>&1 | grep 0x46A3B8B5B5056E16 | count 2

float  F  = 1e-19f;
double D  = 2e32;
float  F2 = 01e-19f;
double D2 = 02e32;


The result of running clang:

(kremenek at grue:Lexer)$ clang -emit-llvm 11-27-2007-FloatLiterals.c
; ModuleID = 'foo'
target triple = "i686-apple-darwin9"
@F = global float 0x3BFD83C940000000		; <float*> [#uses=0]
@D = global double 2.000000e+32		; <double*> [#uses=0]
@F2 = global float 0x3BFD83C940000000		; <float*> [#uses=0]
@D2 = global double 2.000000e+32		; <double*> [#uses=0]


Note that '0x46A3B8B5B5056E16' doesn't appear in the output, but  
'2.000000e+32' does (causing the test to fail).  Should the test case  
be updated, or this a bug?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20071129/140ef4e1/attachment.html>


More information about the cfe-dev mailing list