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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [lookup21.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 run  }
2
// Check that we don't complain about ambiguity between the same static
3
// member function in different subobjects.
4
 
5
struct A {
6
  static void f() {}
7
};
8
 
9
struct B: public A { };
10
struct C: public A { };
11
struct D: public B, public C { };
12
 
13
int main()
14
{
15
  D d;
16
  d.f();
17
}

powered by: WebSVN 2.1.0

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