summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/defaulted7.C
blob: 089d618483ba2f37ea11e24af43dca9c83bbcfc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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" }