aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/g++.dg/ext/is_base_of_incomplete.C
blob: 4704ff5dee123049ce4595f3bd3d1e875f9a8630 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/50732

template <typename T>
struct non_instantiable
{
  typedef typename T::THIS_TYPE_CANNOT_BE_INSTANTIATED type;
};

int check[__is_base_of(non_instantiable<int>, void) ? -1 : 1];