aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/testsuite/g++.dg/cpp0x/decltype49.C
blob: c3174982f82ca8748ad7e91f99f7566d269da230 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/45282
// { dg-require-effective-target c++11 }

struct A { int i; };
int A::*ipm = &A::i;

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

assert_same_type<decltype(A().*ipm),int> x2;