summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/fixed-point/keywords-pedantic.c
blob: 654710671139b902196d01475dd9bcf2bdcab2a0 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */
/* { dg-options "-std=gnu99 -pedantic" } */

/* Fixed-point is a GCC extension.  */

_Fract w;		/* { dg-warning "GCC extension|ISO C" } */
_Accum x;		/* { dg-warning "GCC extension|ISO C" } */
_Sat _Fract y;		/* { dg-warning "GCC extension|ISO C" } */
_Sat _Accum z;		/* { dg-warning "GCC extension|ISO C" } */