URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [rfg18.C] - Rev 816
Compare with Previous | Blame | View Log
// { dg-do assemble }
// Any expression may be explicitly converted to type void.
struct S { int m[10]; } object;
struct S f () { return object; }
void
test ()
{
(void) f().m; /* OK - cast to void; see constraints in 3.8.1 */
}