Sign in
llvm
/
llvm-archive
/
48649d2c83b557841c9e5c978d9ab5af13cb52e5
/
.
/
clang-tests
/
gcc-4_2-testsuite
/
src
/
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
();
}