Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
pr70590.C
blob: 28c455ab5300c9f0bfb6a50a0e842ef0e956dc50 [
file
] [
log
] [
blame
]
// PR c++/70590
// { dg-do compile { target c++11 } }
// { dg-options "-O2" }
int
a
;
constexpr
int
*
foo
()
{
return
&
a
;
}
void
blah
(
int
*);
void
bar
()
{
blah
(
foo
());
}
void
baz
()
{
blah
(
foo
());
}