repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
rfg18.C
blob
53c3dd1628f7c52d616172e829ef3989867f9596
1
// Any expression may be explicitly converted to type void.
2
// Build don't link:
3
4
struct S { int m[10]; } object;
5
struct S f () { return object; }
6
7
void
8
test ()
9
{
10
(void) f().m; /* OK - cast to void; see constraints in 3.8.1 */
11
}