llvm-project/clang/test/Parser/cxx-ext-delete-default.cpp
Douglas Gregor 205d044552 Switch diagnostic text from "C++0x" over to "C++11".
We'd also like for "C++11" or "c++11" to be used for the warning
groups, but without removing the old warning flags. Patches welcome;
I've run out of time to work on this today.

llvm-svn: 141801
2011-10-12 19:26:40 +00:00

12 lines
462 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
struct A {
A(const A&) = delete; // expected-warning {{accepted as a C++11 extension}}
A& operator=(const A&) = delete; // expected-warning {{accepted as a C++11 extension}}
A() = default; // expected-warning {{accepted as a C++11 extension}}
~A();
};
void f() = delete; // expected-warning {{accepted as a C++11 extension}}
A::~A() = default; //expected-warning {{accepted as a C++11 extension}}