PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / rv-cond2.C
blobe231b11e1a6dc67a283b0d1d9df566e45fcb51ca
1 // { dg-do compile { target c++11 } }
3 template <class T, class U> struct ST;
4 template <class T> struct ST<T,T> {};
6 int&& f();
7 const int&& g();
9 void h(bool b) {
10   ST<decltype(b ? f() : g()),const int&&>();