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