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 | 1b925d5717bea1a338931d9e33dda8c77925cd8c (patch) | |
tree | 4b6fc9fb33d1411571ca3af53e4f0d2e37673931 /clang/test/CodeGenCXX/reference-cast.cpp | |
parent | 3816ed4d58b16be2919cfe80f10b71e5825b74a1 (diff) | |
download | bcm5719-llvm-1b925d5717bea1a338931d9e33dda8c77925cd8c.tar.gz bcm5719-llvm-1b925d5717bea1a338931d9e33dda8c77925cd8c.zip |
Adjust test for float printing differences. Windows uses three digits for the exponent, everyone else two.
llvm-svn: 108693
Diffstat (limited to 'clang/test/CodeGenCXX/reference-cast.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/reference-cast.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/CodeGenCXX/reference-cast.cpp b/clang/test/CodeGenCXX/reference-cast.cpp index 49409d7be16..585d1dbd408 100644 --- a/clang/test/CodeGenCXX/reference-cast.cpp +++ b/clang/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; } |