OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [fixed-point/] [constants-pedantic.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-std=gnu99 -pedantic" } */
3
 
4
/* N1169 6.4.4.2a - Fixed-point constants (NEW CLAUSE).  */
5
 
6
_Accum k0 = 0k;         /* { dg-warning "GCC extension|ISO C" } */
7
_Accum k1 = 9999.0e0k;  /* { dg-warning "GCC extension|ISO C" } */
8
_Accum k2 = 9999.0k;    /* { dg-warning "GCC extension|ISO C" } */
9
_Accum k3 = 9999k;      /* { dg-warning "GCC extension|ISO C" } */
10
_Accum k4 = 9999e0k;    /* { dg-warning "GCC extension|ISO C" } */
11
_Accum k5 = 09999k;     /* { dg-warning "GCC extension|ISO C" } */
12
_Accum k6 = 09999e0k;   /* { dg-warning "GCC extension|ISO C" } */
13
_Accum k7 = 09999.0e0k; /* { dg-warning "GCC extension|ISO C" } */
14
_Accum k8 = 09999.0k;   /* { dg-warning "GCC extension|ISO C" } */
15
_Accum k9 = 0x270fp0k;  /* { dg-warning "GCC extension|ISO C" } */
16
_Accum k10 = 0x270f.0p0k;       /* { dg-warning "GCC extension|ISO C" } */
17
 
18
_Fract r0 = 0r;         /* { dg-warning "GCC extension|ISO C" } */
19
_Fract r1 = 0e0r;       /* { dg-warning "GCC extension|ISO C" } */
20
_Fract r2 = 0.0e0r;     /* { dg-warning "GCC extension|ISO C" } */
21
_Fract r3 = 0.1e0r;     /* { dg-warning "GCC extension|ISO C" } */
22
_Fract r4 = 0.0r;       /* { dg-warning "GCC extension|ISO C" } */
23
_Fract r5 = 0.1r;       /* { dg-warning "GCC extension|ISO C" } */
24
_Fract r6 = 0x0p0r;     /* { dg-warning "GCC extension|ISO C" } */
25
_Fract r7 = 0x0.0p0r;   /* { dg-warning "GCC extension|ISO C" } */
26
_Fract r8 = 0x0.1p0r;   /* { dg-warning "GCC extension|ISO C" } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.