pt.c (register_specialization): Push DECL_SOURCE_LOCATION to the clones.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / defaulted7.C
blob97c29258e988522e80d31af457e7852dcbccafb2
1 // PR c++/38701, 38702
2 // { dg-options "-std=c++0x" }
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" }