1 // PR c++/38701, 38702
2 // { dg-do compile { target c++11 } }
3 
4 void foo() = default;		// { dg-error "cannot be defaulted" }
5 namespace
6 {
7   void bar() = default;		// { dg-error "cannot be defaulted" }
8 }
9 
10 enum E { e };
11 
12 E& operator |= (E&, const E&) = default; // { dg-error "cannot be defaulted" }
13