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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [parse/] [access2.C] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
// Copyright (C) 2003 Free Software Foundation
2
// Contributed by Kriang Lerdsuwanakij 
3
// { dg-do compile }
4
 
5
// Deferred access checking of variable declaration.
6
 
7
class A {
8
  typedef int X;        // { dg-error "private" }
9
  static X a, b, c;
10
};
11
 
12
A::X A::a;
13
A::X A::b, x;           // { dg-error "this context" }
14
A::X y, A::c;           // { dg-error "this context" }
15
A::X z;                 // { dg-error "this context" }

powered by: WebSVN 2.1.0

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