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/] [gcc.dg/] [declspec-14.c] - Rev 298
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 "useless type name in empty declaration" } */ struct bar { int a; } x; typeof(x); /* { dg-warning "useless type name in empty declaration" } */