Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
();
}