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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.benjamin/] [p13721.C] - Blame information for rev 749

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

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
// prms-id: 13721
3
 
4
class A
5
{
6
  public :
7
  int a;
8
};
9
class B : public A
10
{
11
  public :
12
  void cmp(int a, int b) {}
13
  B(int a = 0)
14
    {
15
      cmp(A::a, a); //should not give warning
16
    }
17
};
18
int main(void)
19
{
20
  return(1);
21
}

powered by: WebSVN 2.1.0

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