comparison gcc/testsuite/g++.dg/cpp/pr80005.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 // PR preprocessor/80005
2 // { dg-do preprocess }
3
4 #undef vector
5 #define vector NOPE
6 #ifdef __has_include
7
8 #if !__has_include (<vector>)
9 #error "Header 'vector' could not be found"
10 #endif
11 #define F(X) __has_include (X)
12 #if !F (<vector>)
13 #error "Header 'vector' could not be found" // { dg-error "not be found" }
14 #endif
15
16 #if __has_include ("not an escape! \") // comment
17 #endif
18
19 #if F ("is an escape \") gibberish ")
20 #endif
21
22 #else
23 #error "No __has_include"
24 #endif