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
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
pr70590.C
blob
28c455ab5300c9f0bfb6a50a0e842ef0e956dc50
1
// PR c++/70590
2
// { dg-do compile { target c++11 } }
3
// { dg-options "-O2" }
4
5
int a;
6
7
constexpr int *
8
foo ()
9
{
10
return &a;
11
}
12
13
void blah (int *);
14
15
void
16
bar ()
17
{
18
blah (foo ());
19
}
20
21
void
22
baz ()
23
{
24
blah (foo ());
25
}