1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: no-exceptions
11 // 1b00fc5d8133 made it in the dylib in macOS 10.11
12 // XFAIL: use_system_cxx_lib && target={{.+}}-apple-macosx10.{{9|10}}
18 A() : i(0), j(0) {} // explicitly initialize 'i' to prevent warnings
23 typedef const int A::*md1
;
28 B() : k(0), l(0) {} // explicitly initialize 'k' to prevent warnings.
33 typedef const int B::*der1
;
52 // Check that cv qualified conversions are allowed.
81 // Check that Base -> Derived conversions are NOT allowed.
106 // Check that Base -> Derived conversions NOT are allowed with different cv
132 // Check that no Derived -> Base conversions are allowed.
170 int main(int, char**)