URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [declspec-14.c] - Rev 867
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test that "typeof(struct foo)" and similar as declaration specifiers act like typedef. */ /* Origin: Joseph Myers <jsm@polyomino.org.uk> */ /* { dg-do compile } */ /* { dg-options "" } */ typeof(struct foo); /* { dg-warning "warning: useless type name in empty declaration" } */ struct bar { int a; } x; typeof(x); /* { dg-warning "warning: useless type name in empty declaration" } */
Go to most recent revision | Compare with Previous | Blame | View Log