(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp0x/
defaulted7.C
// PR c++/38701, 38702
// { dg-do compile { target c++11 } }

void foo() = default;		// { dg-error "cannot be defaulted" }
namespace
{
  void bar() = default;		// { dg-error "cannot be defaulted" }
}

enum E { e };

E& operator |= (E&, const E&) = default; // { dg-error "cannot be defaulted" }