diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/fixed-point/convert-3.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/fixed-point/convert-3.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/fixed-point/convert-3.c b/gcc/testsuite/gcc.dg/fixed-point/convert-3.c new file mode 100644 index 00000000000..753c472a844 --- /dev/null +++ b/gcc/testsuite/gcc.dg/fixed-point/convert-3.c @@ -0,0 +1,20 @@ +/* { dg-do run } */ +/* { dg-options "-std=gnu99 -O0" } */ + +/* C99 6.3 Conversions. + + Check conversions involving fixed-point. */ + +extern void abort (void); + +#include "convert.h" + +int main () +{ + ALL_CONV (short _Accum, hk); + ALL_CONV (_Accum, k); + ALL_CONV (long _Accum, lk); + ALL_CONV (long long _Accum, llk); + + return 0; +} |