repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-89709.C
blob
30b319abf3d79e57276ce6369a01a817c750be9f
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
}