]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/wave/test/testwave/testfiles/t_2_026.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / wave / test / testwave / testfiles / t_2_026.cpp
index 7549cbcdfab2ca116d2531de41daf1f26d4d32e1..f7966325cb35dd48003cd59662263a945e65ee7f 100644 (file)
 //H 10: t_2_026.cpp(17): #else
 
 
+// Using __has_include() in a larger expression
+
+#if __has_include("t_2_026.cpp") && 1
+#define GOTFILE_ANDWITHTRUE
+#else
+#warning has_include of ourselves anded with 1 failed
+#endif
+
+#if __has_include("t_2_026.cpp") && 0
+#warning has_include of ourselves anded with 0 should fail but did not
+#else
+#define NOFILE_ANDWITHFALSE
+#endif
+
+#if !__has_include("t_2_026.cpp") || 1
+#define NOFILE_ORWITHTRUE
+#else
+#warning not has_include of ourselves ored with 1 failed
+#endif
+
+#if !__has_include("t_2_026.cpp") || 0
+#warning not has_included of ourselves ored with 0 should fail but did not
+#else
+#define NOFILE_ORWITHFALSE
+#endif
+
+//H 10: t_2_026.cpp(33): #if
+//H 11: t_2_026.cpp(33): #if __has_include("t_2_026.cpp") && 1: 1
+//H 10: t_2_026.cpp(34): #define
+//H 08: t_2_026.cpp(34): GOTFILE_ANDWITHTRUE=
+//H 10: t_2_026.cpp(35): #else
+//H 10: t_2_026.cpp(39): #if
+//H 11: t_2_026.cpp(39): #if __has_include("t_2_026.cpp") && 0: 0
+//H 10: t_2_026.cpp(42): #define
+//H 08: t_2_026.cpp(42): NOFILE_ANDWITHFALSE=
+//H 10: t_2_026.cpp(43): #endif
+//H 10: t_2_026.cpp(45): #if
+//H 11: t_2_026.cpp(45): #if !__has_include("t_2_026.cpp") || 1: 1
+//H 10: t_2_026.cpp(46): #define
+//H 08: t_2_026.cpp(46): NOFILE_ORWITHTRUE=
+//H 10: t_2_026.cpp(47): #else
+//H 10: t_2_026.cpp(51): #if
+//H 11: t_2_026.cpp(51): #if !__has_include("t_2_026.cpp") || 0: 0
+//H 10: t_2_026.cpp(54): #define
+//H 08: t_2_026.cpp(54): NOFILE_ORWITHFALSE=
+//H 10: t_2_026.cpp(55): #endif