Debian Codegraph @

gcc/testsuite/c-c++-common/cpp/has-include-2.c

raw
1 /* PR preprocessor/110558 */
2 /* { dg-do preprocess } */
3 #define STRINGIZE(x) #x
4 #define GET_INCLUDE(i) STRINGIZE(has-include-i.h)
5 /* Spaces surrounding the macro args previously caused a problem for __has_include(). */
6 #if __has_include(GET_INCLUDE(2)) && __has_include(GET_INCLUDE( 2)) && __has_include(GET_INCLUDE( 2 ))
7 #include GET_INCLUDE(2)
8 #include GET_INCLUDE( 2)
9 #include GET_INCLUDE( 2 )
10 #else
11 #error "__has_include did not handle padding properly" /* { dg-bogus "__has_include" } */
12 #endif