Mercurial > hg > CbC > CbC_llvm
annotate clang/test/PCH/fixed-point-literal.c @ 173:0572611fdcc8 llvm10 llvm12
reorgnization done
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 11:55:54 +0900 |
parents | |
children |
rev | line source |
---|---|
173 | 1 |
2 // Test this without pch. | |
3 // RUN: %clang_cc1 -ffixed-point -include %S/Inputs/fixed-point-literal.h -fsyntax-only -ast-print -o - %s | FileCheck %s | |
4 | |
5 // Test with pch. | |
6 // RUN: %clang_cc1 -ffixed-point -emit-pch -o %t %S/Inputs/fixed-point-literal.h | |
7 // RUN: %clang_cc1 -ffixed-point -include-pch %t -fsyntax-only -ast-print -o - %s | FileCheck %s | |
8 | |
9 // CHECK: const short _Fract sf = -0.25r; | |
10 // CHECK: const _Fract f = 0.75r; | |
11 // CHECK: const long _Accum la = 25.25lk; | |
12 | |
13 short _Fract sf2 = sf; | |
14 _Fract f2 = f; | |
15 long _Accum la2 = la; |