forked from OSchip/llvm-project
14 lines
684 B
C++
14 lines
684 B
C++
|
// RUN: %clang_cc1 -triple i686-pc-win32 -cxx-abi microsoft -std=c++11 -verify %s
|
||
|
|
||
|
struct S {
|
||
|
virtual ~S() = delete; // expected-note {{function has been explicitly marked deleted here}}
|
||
|
void operator delete(void*, int);
|
||
|
void operator delete(void*, double);
|
||
|
} s; // expected-error {{attempt to use a deleted function}}
|
||
|
|
||
|
struct T { // expected-note{{virtual destructor requires an unambiguous, accessible 'operator delete'}}
|
||
|
virtual ~T() = default; // expected-note {{explicitly defaulted function was implicitly deleted here}}
|
||
|
void operator delete(void*, int);
|
||
|
void operator delete(void*, double);
|
||
|
} t; // expected-error {{attempt to use a deleted function}}
|