Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-89709.C
blob: 30b319abf3d79e57276ce6369a01a817c750be9f [
file
] [
log
] [
blame
]
// PR c++/89709
// { dg-do compile { target c++11 } }
// { dg-options "-O" }
struct
A
{
int
i
;
};
A a
;
constexpr
int
*
foo
()
{
return
&
a
.
i
;
}
bool
bar
()
{
return
foo
()
==
&
a
.
i
;
}