(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
diagnostic/
pr61004.C
// { dg-do compile }
// { dg-options "-O2 -Wall" }

struct A{ };
struct B:A{};
void f(A const&);
int main()
{
  B b;
  f(b); // { dg-bogus "strict-aliasing" }
}