| //===----------------------------------------------------------------------===// |
| // |
| // The LLVM Compiler Infrastructure |
| // |
| // This file is dual licensed under the MIT and the University of Illinois Open |
| // Source Licenses. See LICENSE.TXT for details. |
| // |
| //===----------------------------------------------------------------------===// |
| |
| // UNSUPPORTED: c++98, c++03 |
| |
| // Test exporting the symbol: "__cxa_deleted_virtual" in macosx |
| |
| struct S { virtual void f() = delete; virtual ~S() {} }; |
| int main() { |
| S *s = new S; |
| delete s; |
| } |