Mercurial > hg > CbC > CbC_llvm
view clang/test/PCH/fixed-point-literal.c @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | 0572611fdcc8 |
children |
line wrap: on
line source
// Test this without pch. // RUN: %clang_cc1 -ffixed-point -include %S/Inputs/fixed-point-literal.h -fsyntax-only -ast-print -o - %s | FileCheck %s // Test with pch. // RUN: %clang_cc1 -ffixed-point -emit-pch -o %t %S/Inputs/fixed-point-literal.h // RUN: %clang_cc1 -ffixed-point -include-pch %t -fsyntax-only -ast-print -o - %s | FileCheck %s // CHECK: const short _Fract sf = -0.25r; // CHECK: const _Fract f = 0.75r; // CHECK: const long _Accum la = 25.25lk; short _Fract sf2 = sf; _Fract f2 = f; long _Accum la2 = la;