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
15 A() : i(0), j(0) {} // explicitly initialize 'i' to prevent warnings
20 typedef const int A::*md1
;
25 B() : k(0), l(0) {} // explicitly initialize 'k' to prevent warnings.
30 typedef const int B::*der1
;
49 // Check that cv qualified conversions are allowed.
78 // Check that Base -> Derived conversions are NOT allowed.
103 // Check that Base -> Derived conversions NOT are allowed with different cv
129 // Check that no Derived -> Base conversions are allowed.
167 int main(int, char**)