Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
lto
/
pr95677.C
blob: 520ef04e61c897b592a791a67ab4c19aa4b0af22 [
file
] [
log
] [
blame
]
// PR c++/95677
// { dg-do link }
// { dg-require-effective-target lto }
// { dg-options "-flto" }
namespace
{
void
foo
()
{
extern
int
xx
;
// injects a *static*
xx
=
0
;
}
int
xx
=
1
;
}
int
main
()
{
xx
=
2
;
}