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/] [linkage1.C] - Rev 414
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
typedef struct {
int i;
} *p;
void f (p) { } // { dg-error "uses anonymous type" }
p q; // { dg-warning "uses anonymous type" }
int main()
{
extern p j; // { dg-warning "uses anonymous type" }
struct A { int j; };
extern A a; // { dg-warning "uses local type" }
extern void f (A); // { dg-error "uses local type" }
}
Go to most recent revision | Compare with Previous | Blame | View Log