mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-26 06:48:51 -04:00

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
7 lines
240 B
C++
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}}
|
|
};
|