brintos

brintos / llvm-project-archived public Read only

0
0
Text · 498 B · de5e25a Raw
16 lines · c
1 2// Test this without pch.3// RUN: %clang_cc1 -ffixed-point -include %S/Inputs/fixed-point-literal.h -ast-print -o - %s | FileCheck %s4 5// Test with pch.6// RUN: %clang_cc1 -ffixed-point -emit-pch -o %t %S/Inputs/fixed-point-literal.h7// RUN: %clang_cc1 -ffixed-point -include-pch %t -ast-print -o - %s | FileCheck %s8 9// CHECK: const short _Fract sf = -0.25r;10// CHECK: const _Fract f = 0.75r;11// CHECK: const long _Accum la = 25.25lk;12 13short _Fract sf2 = sf;14_Fract f2 = f;15long _Accum la2 = la;16