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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [using33.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do run }
2
 
3
template 
4
struct Foo
5
{
6
  int k (float) {return 0;}
7
};
8
 
9
template 
10
struct Baz
11
{
12
  int k (int) {return 1;}
13
};
14
 
15
template 
16
struct Bar : Foo , Baz
17
{
18
  using Foo::k;
19
  using Baz::k;
20
};
21
 
22
int main()
23
{
24
  Bar bar;
25
  return bar.k( 1.0f );
26
}

powered by: WebSVN 2.1.0

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