summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/void7.C
blob: 95d87a2073220dbcd608dcb6a38fa7cbcf9ea8bd (plain)
1
2
3
4
5
6
7
8
//PR c++/28741

template<void> struct A         // { dg-error "not a valid type" }
{
  static int i;
};

A<0> a;                        // { dg-error "invalid type|not a valid type" }