diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2013-08-29 23:44:43 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2013-08-29 23:44:43 +0000 |
commit | 4e1a82c14cba135ebd86bcc914fcbbc524d70a61 (patch) | |
tree | 8b470fde6dc4c9e9840e8a66723f73ef30135739 /test/PCH | |
parent | 83369bf8f6244f20ae8bfa2fcb3a556f94da27de (diff) | |
download | clang-4e1a82c14cba135ebd86bcc914fcbbc524d70a61.tar.gz clang-4e1a82c14cba135ebd86bcc914fcbbc524d70a61.tar.bz2 clang-4e1a82c14cba135ebd86bcc914fcbbc524d70a61.tar.xz |
Adjust clang for change to APFloat::toString.
I changed the diagnostic printing code because it's probably better
to cut off a digit from DBL_MAX than to print something like
1.300000001 when the user wrote 1.3.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189625 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/PCH')
-rw-r--r-- | test/PCH/floating-literal.c | 4 | ||||
-rw-r--r-- | test/PCH/objc_literals.m | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/PCH/floating-literal.c b/test/PCH/floating-literal.c index 7bf10d4e79..738e45a415 100644 --- a/test/PCH/floating-literal.c +++ b/test/PCH/floating-literal.c @@ -7,12 +7,12 @@ // targets with 128-bit IEEE long doubles. long double foo = 1.0E4000L; -// CHECK: long double foo = 1.0E+4000L; +// CHECK: long double foo = 1.00000000000000000000000000000000004E+4000L; // Just as well check the others are still sane while we're here... double bar = 1.0E300; -// CHECK: double bar = 1.0E+300; +// CHECK: double bar = 1.0000000000000001E+300; float wibble = 1.0E40; // CHECK: float wibble = 1.0E+40; diff --git a/test/PCH/objc_literals.m b/test/PCH/objc_literals.m index 3a6ec89278..f96d4afe2a 100644 --- a/test/PCH/objc_literals.m +++ b/test/PCH/objc_literals.m @@ -44,18 +44,18 @@ static inline void test_numeric_literals() { // CHECK-PRINT: id intlit = @17 // CHECK-IR: {{call.*17}} id intlit = @17; - // CHECK-PRINT: id floatlit = @17.45 + // CHECK-PRINT: id floatlit = @17.449999999999999 // CHECK-IR: {{call.*1.745}} id floatlit = @17.45; } static inline void test_array_literals() { - // CHECK-PRINT: id arraylit = @[ @17, @17.45 + // CHECK-PRINT: id arraylit = @[ @17, @17.449999999999999 id arraylit = @[@17, @17.45]; } static inline void test_dictionary_literals() { - // CHECK-PRINT: id dictlit = @{ @17 : {{@17.45[^,]*}}, @"hello" : @"world" }; + // CHECK-PRINT: id dictlit = @{ @17 : {{@17.449999999999999[^,]*}}, @"hello" : @"world" }; id dictlit = @{@17 : @17.45, @"hello" : @"world" }; } |