(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
other/
static2.C
//PR c++/26573

void foo()
{
  struct A { static int i; };   // { dg-error "shall not have" }
}

template<typename T>
void bar()
{
  struct B { static int j; };   // { dg-error "shall not have" }
}