Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-89709.C
blob30b319abf3d79e57276ce6369a01a817c750be9f
1 // PR c++/89709
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-O" }
5 struct A { int i; };
6 A a;
8 constexpr int *
9 foo ()
11   return &a.i;
14 bool
15 bar ()
17   return foo () == &a.i;