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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [parse9.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do run  }
2
// PRMS Id: 5720
3
// Bug: the extra set of parens confuses the expr/declarator disambiguation.
4
 
5
class Fu
6
{
7
  int val;
8
public:
9
  Fu(int i) : val(i) { }
10
  void print() { }
11
};
12
 
13
int main(int argc, char * argv[])
14
{
15
  int * i = &argc;
16
 
17
  Fu((*i)).print();             // { dg-bogus "" }
18
  Fu((*j));
19
}

powered by: WebSVN 2.1.0

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