Sign in
gnu
/
gcc
/
b1143e51359be3b1151d892970f43ae67dee64d2
/
.
/
gcc
/
testsuite
/
g++.dg
/
special
/
conpr-1.C
blob: 8ab6bfee2584186df550ee07248d7f8145ec5341 [
file
] [
log
] [
blame
]
/* { dg-do run } */
class
foo_t
{
int
x
;
public
:
foo_t
(
void
)
{
x
=
1
;
}
int
get
(
void
)
{
return
x
;
}
};
static
foo_t
foo __attribute__
((
init_priority
(
5000
)));
int
main
(
void
)
{
if
(
foo
.
get
())
exit
(
0
);
else
abort
();
}