Sign in
llvm
/
llvm-archive
/
f8b4f79771a41ee0a0f02ac90619d37ccd834915
/
.
/
llvm-gcc-4.0
/
gcc
/
testsuite
/
g++.dg
/
special
/
conpr-1.C
blob: c91753dc4959c0637057f87106a615ae43cb5db4 [
file
] [
log
] [
blame
]
/* { dg-do run } */
#include
<stdlib.h>
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
();
}