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