Home | History | Annotate | Download | only in Parser
      1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
      2 
      3 struct A {
      4   A(const A&) = delete; // expected-warning {{accepted as a C++0x extension}}
      5   A& operator=(const A&) = delete; // expected-warning {{accepted as a C++0x extension}}
      6   A() = default; // expected-warning {{accepted as a C++0x extension}}
      7   ~A();
      8 };
      9 
     10 void f() = delete; // expected-warning {{accepted as a C++0x extension}}
     11 A::~A() = default; //expected-warning {{accepted as a C++0x extension}}
     12