blob: fdf5ac8bd584ae7782c52f0de58669eef9918119 [file] [log] [blame]
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
struct A {
A(const A&) = delete; // expected-warning {{deleted function definition accepted as a C++0x extension}}
A& operator=(const A&) = delete; // expected-warning {{deleted function definition accepted as a C++0x extension}}
};
void f() = delete; // expected-warning {{deleted function definition accepted as a C++0x extension}}