• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 //O --c++17
11 //O -Werror
12 
13 // Test __has_include() with some interesting cases
14 
15 #if __has_include(/* comment */ __FILE__ /* comment */)
16 #define GOTTHISFILE_WITHCOMMENTS
17 #else
18 #warning cannot find using file macro when comments are present
19 #endif
20 
21 //H 10: t_2_026.cpp(15): #if
22 //H 01: <built-in>(1): __FILE__
23 //H 02: "$F"
24 //H 03: "$F"
25 //H 11: t_2_026.cpp(15): #if __has_include(/* comment */ __FILE__ /* comment */): 1
26 //H 10: t_2_026.cpp(16): #define
27 //H 08: t_2_026.cpp(16): GOTTHISFILE_WITHCOMMENTS=
28 //H 10: t_2_026.cpp(17): #else
29 
30 
31