* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / defaulted7.C
blob089d618483ba2f37ea11e24af43dca9c83bbcfc3
1 // PR c++/38701, 38702
2 // { dg-do compile { target c++11 } }
4 void foo() = default;           // { dg-error "cannot be defaulted" }
5 namespace
7   void bar() = default;         // { dg-error "cannot be defaulted" }
10 enum E { e };
12 E& operator |= (E&, const E&) = default; // { dg-error "cannot be defaulted" }