[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaCXX / microsoft-dtor-lookup-cxx11.cpp
blob5c222d7a2f83745ae30827779896298c302223c6
1 // RUN: %clang_cc1 -triple i686-pc-win32 -std=c++11 -verify %s
3 struct S {
4 virtual ~S() = delete; // expected-note {{'~S' has been explicitly marked deleted here}}
5 void operator delete(void*, int);
6 void operator delete(void*, double);
7 } s; // expected-error {{attempt to use a deleted function}}
9 struct T { // expected-note 2{{virtual destructor requires an unambiguous, accessible 'operator delete'}}
10 virtual ~T() = default; // expected-note {{explicitly defaulted function was implicitly deleted here}} expected-warning {{implicitly deleted}} expected-note{{replace 'default'}}
11 void operator delete(void*, int);
12 void operator delete(void*, double);
13 } t; // expected-error {{attempt to use a deleted function}}