teak-llvm/clang/test/SemaCXX/deleted-function-access.cpp
Davide Italiano f179e36e0e [Sema] Diagnose use of declaration correctly.
Before we skipped that for virtual functions not fully qualified (r81507).
This commit basically reverts this to the older behaviour, which seems
more consistent. We now also correctly consider ill-formed calls to deleted
member functions, which were silently passed before in some cases.
The review contains the whole discussion.

PR:		20268
Differential Revision:	 http://reviews.llvm.org/D11334

llvm-svn: 242857
2015-07-22 00:30:58 +00:00

7 lines
240 B
C++

// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
struct S {
virtual void f() = delete; //expected-note{{'f' has been explicitly marked deleted here}}
void g() { f(); } //expected-error{{attempt to use a deleted function}}
};