URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [diagnostic/] [aka1.C] - Rev 716
Go to most recent revision | Compare with Previous | Blame | View Log
// Basic test for typedef stripping in diagnostics.
struct A {
void f();
};
void A::f() {
// We don't want an aka for the injected-class-name.
A a = 0; // { dg-error "type .A. requested" }
}
typedef A B;
// We do want an aka for a real typedef.
B b = 0; // { dg-error "B .aka A." }
Go to most recent revision | Compare with Previous | Blame | View Log