OSDN Git Service

PR c++/44157
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / defaulted7.C
1 // PR c++/38701, 38702
2 // { dg-options "-std=c++0x" }
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" }