Home | History | Annotate | Download | only in SemaCXX
      1 // RUN: %clang_cc1 -triple i686-pc-win32 -std=c++11 -verify %s
      2 
      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}}
      8 
      9 struct T { // expected-note{{virtual destructor requires an unambiguous, accessible 'operator delete'}}
     10   virtual ~T() = default; // expected-note {{explicitly defaulted function was implicitly deleted here}}
     11   void operator delete(void*, int);
     12   void operator delete(void*, double);
     13 } t; // expected-error {{attempt to use a deleted function}}
     14