summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/void2.C
blob: eceb36219aa9ae57551288a2bf3adabca4be8b51 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/27496
// { dg-do compile }

template<int> struct A
{
  template<void> friend class X;  // { dg-error "void|valid type" }
};

A<0> a;