2011-05-13 09:01:05 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
|
|
|
|
|
|
|
|
struct A {
|
2011-12-30 05:57:33 +08:00
|
|
|
A(const A&) = delete; // expected-warning {{C++11 extension}}
|
|
|
|
A& operator=(const A&) = delete; // expected-warning {{C++11 extension}}
|
|
|
|
A() = default; // expected-warning {{C++11 extension}}
|
2011-05-13 09:01:05 +08:00
|
|
|
~A();
|
|
|
|
};
|
|
|
|
|
2011-12-30 05:57:33 +08:00
|
|
|
void f() = delete; // expected-warning {{C++11 extension}}
|
|
|
|
A::~A() = default; //expected-warning {{C++11 extension}}
|