(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp0x/
noexcept78.C
// PR c++/109761
// { dg-do compile { target c++11 } }

struct base {
  virtual void foo() noexcept { }
  virtual ~base() { }
};

struct outer : base {
  struct nested {
    void foo() noexcept(noexcept(g())); // { dg-bogus "looser" }
    ~nested() noexcept(noexcept(g()));  // { dg-bogus "looser" }
  };
  static void g();
};