[cfe-commits] r108693 - /cfe/trunk/test/CodeGenCXX/reference-cast.cpp
Benjamin Kramer
benny.kra at googlemail.com
Mon Jul 19 04:48:10 PDT 2010
Author: d0k
Date: Mon Jul 19 06:48:10 2010
New Revision: 108693
URL: http://llvm.org/viewvc/llvm-project?rev=108693&view=rev
Log:
Adjust test for float printing differences. Windows uses three digits for the exponent, everyone else two.
Modified:
cfe/trunk/test/CodeGenCXX/reference-cast.cpp
Modified: cfe/trunk/test/CodeGenCXX/reference-cast.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/reference-cast.cpp?rev=108693&r1=108692&r2=108693&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/reference-cast.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/reference-cast.cpp Mon Jul 19 06:48:10 2010
@@ -42,24 +42,24 @@
// CHECK: define float* @_Z29lvalue_integral_floating_castv()
const float &lvalue_integral_floating_cast() {
if (i == 0)
- // CHECK: store float 1.700000e+01, float*
+ // CHECK: store float 1.700000e+{{0*}}1, float*
return (const float&)17;
else if (i == 1)
- // CHECK: store float 1.700000e+01, float*
+ // CHECK: store float 1.700000e+{{0*}}1, float*
return static_cast<const float&>(17);
- // CHECK: store float 1.700000e+01, float*
+ // CHECK: store float 1.700000e+{{0*}}1, float*
return 17;
}
// CHECK: define float* @_Z20lvalue_floating_castv()
const float &lvalue_floating_cast() {
if (i == 0)
- // CHECK: store float 1.700000e+01, float*
+ // CHECK: store float 1.700000e+{{0*}}1, float*
return (const float&)17.0;
else if (i == 1)
- // CHECK: store float 1.700000e+01, float*
+ // CHECK: store float 1.700000e+{{0*}}1, float*
return static_cast<const float&>(17.0);
- // CHECK: store float 1.700000e+01, float*
+ // CHECK: store float 1.700000e+{{0*}}1, float*
return 17.0;
}
More information about the cfe-commits
mailing list