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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [friend9.C] - Blame information for rev 305

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
 
3
// Copyright (C) 2000 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 24 Nov 2000 
5
 
6
// Bug 853: We reported the wrong line no for a friend access violation
7
 
8
class F
9
{
10
  class Internal;   // { dg-error "" } is private
11
};
12
 
13
class C
14
{
15
  friend class F::Internal; // { dg-error "" } in this context
16
  public:
17
  typedef enum { A, B } e;
18
 
19
  C ();
20
  ~C();
21
 
22
  void m();
23
};

powered by: WebSVN 2.1.0

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