rfg18.C   [plain text]


// Any expression may be explicitly converted to type void.
// Build don't link:

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 */
}