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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [parens2.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* PR c++/8842. */
2
/* { dg-do compile } */
3
int main( int argc, char* argv[] )
4
{
5
    int i = 5;
6
    // This always worked:
7
    // double l1 =  double(int(i)) / double(int(i));
8
    // But this used to give a parse error before the `/' token:
9
    double l2 = (double(int(i)) / double(int(i)));
10
}
11
 

powered by: WebSVN 2.1.0

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