tccrun: PAGEALIGN'ed mprotect
[tinycc.git] / tests / tests2 / 18_include.c
blob9ff60c96f050dd43d2b3ac0790bd152b7f5535d0
1 #include <stdio.h>
3 int main()
5 printf("including\n");
6 #include "18_include.h"
7 #define test_missing_nl
8 printf("done\n");
10 #define INC "18_include.h"
12 #ifdef __has_include
13 #if defined __has_include
14 #if __has_include("18_include.h")
15 printf("has_include\n");
16 #endif
17 #if __has_include(INC)
18 printf("has_include\n");
19 #endif
20 #if __has_include("not_found_18_include.h")
21 printf("has_include not found\n");
22 #endif
23 #endif
24 #endif
26 #ifdef __has_include_next
27 #if defined __has_include_next
28 #if __has_include_next("18_include.h")
29 printf("has_include_next\n");
30 #endif
31 #if __has_include_next(INC)
32 printf("has_include_next\n");
33 #endif
34 #if __has_include_next("not_found_18_include.h")
35 printf("has_include_next not found\n");
36 #endif
37 #endif
38 #endif
40 #include "18_include2.h"
41 #include "./18_include2.h"
42 #include "../tests2/18_include2.h"
44 return 0;
47 /* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/