1 | //===----------------------------------------------------------------------===// |
2 | // |
3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | // See https://llvm.org/LICENSE.txt for license information. |
5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | // UNSUPPORTED: c++03 |
10 | |
11 | // Test exporting the symbol: "__cxa_deleted_virtual" in macosx |
12 | // But don't expect the symbol to be exported in previous versions. |
13 | // |
14 | // XFAIL: stdlib=apple-libc++ && target={{.+}}-apple-macosx10.{{9|10|11|12|13}} |
15 | |
16 | struct S { virtual void f() = delete; virtual ~S() {} }; |
17 | int main(int, char**) { |
18 | S *s = new S; |
19 | delete s; |
20 | |
21 | return 0; |
22 | } |
23 | |