Sign in
gnu
/
gcc
/
418f81eefb6540582e4818225404d4a647ad67eb
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
rfg18.C
blob: 53c3dd1628f7c52d616172e829ef3989867f9596 [
file
] [
log
] [
blame
]
// 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 */
}