URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bob/] [inherit2.C] - Rev 378
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
#include <stdlib.h>
class A {
public:
void z();
A(void) {}
private:
A(const A &) { abort(); } // { dg-error "private" }
const A& operator =(const A &) { abort(); }
};
class B : public A { // { dg-error "within" }
public:
B(void) {}
};
void f(B b) {
}
void g() {
B h;
f(h); // { dg-error "argument" "arg" }
// { dg-message "synthesized" "synth" { target *-*-* } 23 }
}
Go to most recent revision | Compare with Previous | Blame | View Log