aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/decltype-1212.C
blob: f9c879e9525d8941340dcc4afb46fcf67d4478c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Core 1212
// { dg-do compile { target c++11 } }

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

int main()
{
  int i;
  assert_same_type<int&&,decltype(static_cast<int&&>(i))>();
}