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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [friend13.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
// Perform access checking to parameter and return type of
4
// function template correctly when only specialization is friend.
5
 
6
template 
7
typename T::Inner
8
foo () {
9
  return typename T::Inner();
10
}
11
 
12
class Outer {
13
  private:
14
    struct Inner {};
15
 
16
    friend Outer::Inner foo ();
17
};
18
 
19
void f() {
20
  foo();
21
}

powered by: WebSVN 2.1.0

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