☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
rv-cond2.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/rv-cond2.C
code
plain
raw
1
// { dg-do compile { target c++11 } }
2
3
template <class T, class U> struct ST;
4
template <class T> struct ST<T,T> {};
5
6
int&& f();
7
const int&& g();
8
9
void h(bool b) {
10
ST<decltype(b ? f() : g()),const int&&>();
11
}