1// RUN: %clang_cc1 -triple mips64-none-linux-gnu -emit-pch -o %t %s 2// RUN: %clang_cc1 -x ast -ast-print %t | FileCheck %s 3 4// Make sure the semantics of FloatingLiterals are stored correctly in 5// the AST. Previously, the ASTWriter didn't store anything and the 6// reader assumed PPC 128-bit float semantics, which is incorrect for 7// targets with 128-bit IEEE long doubles. 8 9long double foo = 1.0E4000L; 10// CHECK: long double foo = 1.00000000000000000000000000000000004E+4000L; 11 12// Just as well check the others are still sane while we're here... 13 14double bar = 1.0E300; 15// CHECK: double bar = 1.0000000000000001E+300; 16 17float wibble = 1.0E40; 18// CHECK: float wibble = 1.0E+40; 19