☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-89709.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-89709.C
code
plain
raw
1
// PR c++/89709
2
// { dg-do compile { target c++11 } }
3
// { dg-options "-O" }
4
5
struct A { int i; };
6
A a;
7
8
constexpr int *
9
foo ()
10
{
11
return &a.i;
12
}
13
14
bool
15
bar ()
16
{
17
return foo () == &a.i;
18
}