Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr78812.C
blob: efe0936767d71c4e3f878b3a1a2bcc4f6fe6ebc9 [
file
] [
log
] [
blame
]
// { dg-do run }
// { dg-options "-fpic" { target fpic } }
struct
T
{
bool
a
;
T
()
:
a
(
false
)
{}
~
T
()
{
if
(!
a
)
__builtin_abort
();
}
};
__attribute__
((
noinline
))
void
test
(
T
&
x
)
{
x
.
a
=
true
;
}
int
main
()
{
T T
;
test
(
T
);
}