]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/wave/test/testwave/testfiles/t_2_024.cpp
1 /*=============================================================================
2 Boost.Wave: A Standard compliant C++ preprocessor library
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 =============================================================================*/
13 // Test __has_include() with system paths
15 // point system path to this directory
19 #if __has_include(<t_2_024.cpp>)
20 #define FOUND_SELF_VIA_SYSTEM_PATH
22 #warning could not find this file via system path
25 #warning has_include is not defined
28 //H 10: t_2_024.cpp(18): #ifdef
29 //H 11: t_2_024.cpp(18): #ifdef __has_include: 1
30 //H 10: t_2_024.cpp(19): #if
31 //H 11: t_2_024.cpp(19): #if __has_include(<t_2_024.cpp>): 1
32 //H 10: t_2_024.cpp(20): #define
33 //H 08: t_2_024.cpp(20): FOUND_SELF_VIA_SYSTEM_PATH=
34 //H 10: t_2_024.cpp(21): #else
35 //H 10: t_2_024.cpp(24): #else
39 #elif __has_include(<t_2_024.cpp>)
40 #define FOUND_SELF_VIA_SYSTEM_PATH_ELIF
42 #warning could not find this file via system path - elif
46 //H 10: t_2_024.cpp(37): #ifdef
47 //H 11: t_2_024.cpp(37): #ifdef __has_include: 1
48 //H 10: t_2_024.cpp(38): #if
49 //H 11: t_2_024.cpp(38): #if 0: 0
50 //H 10: t_2_024.cpp(39): #elif
51 //H 11: t_2_024.cpp(39): #elif __has_include(<t_2_024.cpp>): 1
52 //H 10: t_2_024.cpp(40): #define
53 //H 08: t_2_024.cpp(40): FOUND_SELF_VIA_SYSTEM_PATH_ELIF=
54 //H 10: t_2_024.cpp(41): #else
55 //H 10: t_2_024.cpp(44): #endif
58 #if !__has_include(<some_include_file.h>)
59 #define NOTFOUND_AS_EXPECTED
61 #warning found nonexistent file
64 #warning has_include is not defined
67 //H 10: t_2_024.cpp(57): #ifdef
68 //H 11: t_2_024.cpp(57): #ifdef __has_include: 1
69 //H 10: t_2_024.cpp(58): #if
70 //H 11: t_2_024.cpp(58): #if !__has_include(<some_include_file.h>): 1
71 //H 10: t_2_024.cpp(59): #define
72 //H 08: t_2_024.cpp(59): NOTFOUND_AS_EXPECTED=
73 //H 10: t_2_024.cpp(60): #else
74 //H 10: t_2_024.cpp(63): #else
78 #elif !__has_include(<some_include_file.h>)
79 #define NOTFOUND_AS_EXPECTED_ELIF
81 #warning found nonexistent file - elif
85 //H 10: t_2_024.cpp(76): #ifdef
86 //H 11: t_2_024.cpp(76): #ifdef __has_include: 1
87 //H 10: t_2_024.cpp(77): #if
88 //H 11: t_2_024.cpp(77): #if 0: 0
89 //H 10: t_2_024.cpp(78): #elif
90 //H 11: t_2_024.cpp(78): #elif !__has_include(<some_include_file.h>): 1
91 //H 10: t_2_024.cpp(79): #define
92 //H 08: t_2_024.cpp(79): NOTFOUND_AS_EXPECTED_ELIF=
93 //H 10: t_2_024.cpp(80): #else
94 //H 10: t_2_024.cpp(83): #endif