2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / rfg18.C
blob9c32b1f025693f9afefb47e35cab55c87b2319e7
1 // { dg-do assemble  }
2 // Any expression may be explicitly converted to type void.
4 struct S { int m[10]; } object;
5 struct S f () { return object; }
6  
7 void
8 test ()
10   (void) f().m;         /* OK - cast to void; see constraints in 3.8.1 */