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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Copyright (C) 2003 Free Software Foundation
2
// Contributed by Kriang Lerdsuwanakij 
3
// { dg-do compile }
4
 
5
// Template instantiate during deferred access check
6
 
7
template  struct C {
8
  typedef int Y;
9
};
10
 
11
template  void f(typename T::X) {
12
}
13
 
14
class A {
15
  typedef int X;
16
  template  friend void f(typename T::X);
17
};
18
 
19
C<&f >::Y g(int);

powered by: WebSVN 2.1.0

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