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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [c99-const-expr-13.c] - Blame information for rev 310

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

Line No. Rev Author Line
1 298 jeremybenn
/* Test for constant expressions: VLA size constraints with
2
   -frounding-math.  */
3
/* Origin: Joseph Myers <joseph@codesourcery.com> */
4
/* { dg-do compile } */
5
/* { dg-options "-std=iso9899:1999 -pedantic-errors -frounding-math" } */
6
 
7
void
8
f (void)
9
{
10
  /* With -frounding-math, presume that floating-point expressions
11
     that may depend on the rounding mode do not count as arithmetic
12
     constant expressions, and so arrays involving such expressions in
13
     their sizes do not have the size checked for being negative.  */
14
  int a1[(int)(-5.0/3.0)];
15
}

powered by: WebSVN 2.1.0

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