]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/libcxx/language.support/cxa_deleted_virtual.pass.cpp
Vendor import of libc++ trunk r351319 (just before the release_80
[FreeBSD/FreeBSD.git] / test / libcxx / language.support / cxa_deleted_virtual.pass.cpp
1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 // UNSUPPORTED: c++98, c++03
11
12 // Test exporting the symbol: "__cxa_deleted_virtual" in macosx
13 // But don't expect the symbol to be exported in previous versions.
14 //
15 // XFAIL: with_system_cxx_lib=macosx10.14
16 // XFAIL: with_system_cxx_lib=macosx10.13
17 // XFAIL: with_system_cxx_lib=macosx10.12
18 // XFAIL: with_system_cxx_lib=macosx10.11
19 // XFAIL: with_system_cxx_lib=macosx10.10
20 // XFAIL: with_system_cxx_lib=macosx10.9
21 // XFAIL: with_system_cxx_lib=macosx10.8
22 // XFAIL: with_system_cxx_lib=macosx10.7
23
24 struct S { virtual void f() = delete; virtual ~S() {} };
25 int main() {
26   S *s = new S;
27   delete s;
28 }