libcxx

libcxx mirror with random patches
git clone https://git.neptards.moe/neptards/libcxx.git
Log | Files | Refs

is_convertible_fallback.pass.cpp (839B)


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