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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bob/] [inherit2.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
#include 
3
 
4
class A {
5
public:
6
  void z();
7
  A(void) {}
8
private:
9
  A(const A &) { abort(); } // { dg-error "private" }
10
  const A& operator =(const A &) { abort(); }
11
};
12
 
13
class B : public A { // { dg-error "within" }
14
public:
15
  B(void) {}
16
};
17
 
18
void f(B b) {
19
}
20
 
21
void g() {
22
  B h;
23
  f(h); // { dg-error "argument" "arg" }
24
  // { dg-message "synthesized" "synth" { target *-*-* } 23 }
25
}

powered by: WebSVN 2.1.0

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