diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-07-19 11:48:10 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-07-19 11:48:10 +0000 |
commit | 2b02f7a051b092ebbae436026565fee52683972f (patch) | |
tree | e4eda728362a2b220bb3f2062c344728aa42f675 /test/CodeGenCXX/reference-cast.cpp | |
parent | e3041be307d4c133605544a74f40c42c7531b5bb (diff) |
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
Diffstat (limited to 'test/CodeGenCXX/reference-cast.cpp')
-rw-r--r-- | test/CodeGenCXX/reference-cast.cpp | 12 |
1 files 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<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; } |