aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/rv-cond2.C
blob: e231b11e1a6dc67a283b0d1d9df566e45fcb51ca (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do compile { target c++11 } }

template <class T, class U> struct ST;
template <class T> struct ST<T,T> {};

int&& f();
const int&& g();

void h(bool b) {
  ST<decltype(b ? f() : g()),const int&&>();
}