summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/void13.C
blob: 3f36735dbc1ee23cf9c824cbd17d3d6231a0ba97 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/30299

struct A
{
  int i;
};

template<void> struct B : A  // { dg-error "not a valid type" }
{
  B() { this->i; }
};