repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-temp1.C
blob
d06543632703708d3ef5d863e1e48cb432b3da09
1
// { dg-do compile { target c++11 } }
2
3
struct A { int i; };
4
constexpr A f2 (const A& a) { return a; }
5
constexpr int f1 (const A &a) { return f2(a).i; }
6
A g(const A &a)
7
{
8
return { f1(a) };
9
}