1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s 2 3 struct A { 4 A(const A&) = delete; // expected-warning {{C++11 extension}} 5 A& operator=(const A&) = delete; // expected-warning {{C++11 extension}} 6 A() = default; // expected-warning {{C++11 extension}} 7 ~A(); 8 }; 9 10 void f() = delete; // expected-warning {{C++11 extension}} 11 A::~A() = default; //expected-warning {{C++11 extension}} 12