(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
pr54442.C
/* { dg-do compile } */

struct S
{
  void s (int) const throw ();
  void s (int) throw ();
};

typedef int index_t;

void (S::*f) (index_t)       = &S::s;
void (S::*g) (index_t) const = &S::s;