Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
construct1.C
blob: 6a7d8cee403058140274dc49246f4fe6b00ed83e [
file
] [
log
] [
blame
]
// PR c++/16717
// { dg-options "-O2" }
int
i
;
void
hello
(
void
)
__attribute__
((
constructor
));
void
hello
(
void
)
{
i
=
1
;
}
int
main
(
void
)
{
if
(
i
!=
1
)
return
1
;
}