1 2 3 4 5 6 7
// PR c++/49066 // { dg-options -std=c++0x } void foo() = delete; // { dg-error "declared here" } void foo(); int main() { foo(); } // { dg-error "deleted" }