view 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
line wrap: on
line source

// PR preprocessor/80005
// { dg-do preprocess }

#undef vector
#define vector NOPE
#ifdef __has_include

#if !__has_include (<vector>)
#error "Header 'vector' could not be found"
#endif
#define F(X) __has_include (X)
#if !F (<vector>)
#error "Header 'vector' could not be found" // { dg-error "not be found" }
#endif

#if __has_include ("not an escape! \")	// comment
#endif

#if F ("is an escape \") gibberish ")
#endif

#else
#error "No __has_include"
#endif