From 2b02f7a051b092ebbae436026565fee52683972f Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 19 Jul 2010 11:48:10 +0000 Subject: [PATCH] Adjust test for float printing differences. Windows uses three digits for the exponent, everyone else two. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108693 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGenCXX/reference-cast.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/CodeGenCXX/reference-cast.cpp b/test/CodeGenCXX/reference-cast.cpp index 49409d7be1..585d1dbd40 100644 --- a/test/CodeGenCXX/reference-cast.cpp +++ b/test/CodeGenCXX/reference-cast.cpp @@ -42,24 +42,24 @@ const short &lvalue_floating_integral_cast() { // 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(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(17.0); - // CHECK: store float 1.700000e+01, float* + // CHECK: store float 1.700000e+{{0*}}1, float* return 17.0; } -- 2.40.0