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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [friend1.C] - Blame information for rev 705

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

Line No. Rev Author Line
1 693 jeremybenn
// From N1791
2
// { dg-options -std=c++0x }
3
 
4
class C;
5
typedef C Ct;
6
class X1 {
7
  friend C;             // OK: class C is a friend
8
};
9
 
10
class X2
11
{
12
  friend Ct;            // OK: class C is a friend
13
  friend D;             // { dg-error "" } no type-name D in scope
14
  friend class D;       // OK: elaborated-type-specifier declares new class
15
};
16
 
17
template  class R {
18
  friend T;
19
};
20
 
21
R rc;           // class C is a friend of R
22
R Ri;           // OK: "friend int;" is ignored

powered by: WebSVN 2.1.0

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