Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
temp-extend1.C
blob: 639f945657353323e6227f3dac5a0a08af9d0aa0 [
file
] [
log
] [
blame
]
// PR c++/81420
// { dg-do run { target c++11 } }
int
d
;
struct
A
{
int
i
[
2
];
~
A
()
{
++
d
;
};
};
struct
B
:
A
{};
int
main
()
{
const
int
&
r
=
B
().
i
[
0
];
if
(
d
!=
0
)
__builtin_abort
();
}