1 /* { dg-do run } */
2 /* { dg-options "-std=gnu99 -O0" } */
3
4 /* C99 6.3 Conversions.
5
6 Check conversions involving fixed-point. */
7
8 extern void abort (void);
9
10 #include "convert.h"
11
main()12 int main ()
13 {
14 ALL_ACCUM_CONV (short _Accum, hk);
15 ALL_ACCUM_CONV (_Accum, k);
16 ALL_ACCUM_CONV (long _Accum, lk);
17 ALL_ACCUM_CONV (long long _Accum, llk);
18 ALL_ACCUM_CONV (unsigned short _Accum, uhk);
19 ALL_ACCUM_CONV (unsigned _Accum, uk);
20 ALL_ACCUM_CONV (unsigned long _Accum, ulk);
21 ALL_ACCUM_CONV (unsigned long long _Accum, ullk);
22
23 NEG_CONV (short _Fract, hr);
24 NEG_CONV (_Fract, r);
25 NEG_CONV (long _Fract, lr);
26 NEG_CONV (long long _Fract, llr);
27 NEG_CONV (short _Accum, hk);
28 NEG_CONV (_Accum, k);
29 NEG_CONV (long _Accum, lk);
30 NEG_CONV (long long _Accum, llk);
31
32 return 0;
33 }
34