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