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 // type_traits
12 
13 // is_convertible
14 
15 // Test the fallback implementation.
16 
17 // libc++ provides a fallback implementation of the compiler trait
18 // `__is_convertible` with the same name when clang doesn't.
19 // Because this test forces the use of the fallback even when clang provides
20 // it causing a keyword incompatibility.
21 #if defined(__clang__)
22 #pragma clang diagnostic ignored "-Wkeyword-compat"
23 #endif
24 
25 #define _LIBCPP_USE_IS_CONVERTIBLE_FALLBACK
26 #include "is_convertible.pass.cpp"
27 
28 #include "test_macros.h"
29