summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/parens2.C
blob: 636dd8df33670939ade32d2251fb2eebade8ecaf (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR c++/8842. */
/* { dg-do compile } */
int main( int argc, char* argv[] )
{
    int i = 5;
    // This always worked:
    // double l1 =  double(int(i)) / double(int(i));
    // But this used to give a parse error before the `/' token:
    double l2 = (double(int(i)) / double(int(i))); 
}