(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
template/
void2.C
// PR c++/27496
// { dg-do compile }

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

A<0> a;