[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / PCH / fixed-point-literal.c
blob996d8c11708979adc25b5c8f882a064613b7c14c
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
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
9 // CHECK: const short _Fract sf = -0.25r;
10 // CHECK: const _Fract f = 0.75r;
11 // CHECK: const long _Accum la = 25.25lk;
13 short _Fract sf2 = sf;
14 _Fract f2 = f;
15 long _Accum la2 = la;