1 /*============================================================================= 2 Boost.Wave: A Standard compliant C++ preprocessor library 3 http://www.boost.org/ 4 5 Copyright (c) 2020 Jeff Trull. Distributed under the Boost 6 Software License, Version 1.0. (See accompanying file 7 LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 8 =============================================================================*/ 9 10 // Test that __has_include is an available macro name before C++17 11 12 //O --c++11 13 //O -Werror 14 15 #ifdef __has_include 16 #warning has_include is available in C++11 mode 17 #endif 18 19 #define __has_include(X) something 20 21 //H 10: t_2_029.cpp(15): #ifdef 22 //H 11: t_2_029.cpp(15): #ifdef __has_include: 0 23 //H 10: t_2_029.cpp(19): #define 24 //H 08: t_2_029.cpp(19): __has_include(X)=something 25 26