Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/rv-cond2.C

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 }