(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
warn/
Wnoexcept2.C
// PR c++/93805
// { dg-do compile { target c++11 } }
// { dg-additional-options "-Wnoexcept" }

struct B
{
  B() {}
};

struct C
{
  B b = B();
};

C c; // { dg-bogus "noexcept-expression" }