Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test16627.d
blob: 176f1257f4a09c543d4eb615edba25b3faf18006 [
file
] [
log
] [
blame
]
void
test
()
{
int
a
;
struct
Field
{
this
(
this
)
{
++
a
;
}
~
this
()
{
--
a
;
}
}
struct
S
{
Field
field
;
// generates __fieldPostblit, __fieldDtor, and opAssign
}
static
assert
(
__traits
(
isNested
,
Field
));
static
assert
(!
__traits
(
isNested
,
S
));
}