Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Parser / cxx-ext-delete-default.cpp
blobaf8b6d6d34711e2cb62c761fa2511968a8ad39c8
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
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 };
10 void f() = delete; // expected-warning {{C++11 extension}}
11 A::~A() = default; //expected-warning {{C++11 extension}}