diff options
Diffstat (limited to 'deps/gyp/test/include_dirs/src/includes.c')
-rw-r--r-- | deps/gyp/test/include_dirs/src/includes.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/deps/gyp/test/include_dirs/src/includes.c b/deps/gyp/test/include_dirs/src/includes.c new file mode 100644 index 0000000000..6e2a23cdff --- /dev/null +++ b/deps/gyp/test/include_dirs/src/includes.c @@ -0,0 +1,19 @@ +#include <stdio.h> + +#include "inc.h" +#include "include1.h" +#include "include2.h" +#include "shadow.h" + +int main(void) +{ + printf("Hello from includes.c\n"); + printf("Hello from %s\n", INC_STRING); + printf("Hello from %s\n", INCLUDE1_STRING); + printf("Hello from %s\n", INCLUDE2_STRING); + /* Test that include_dirs happen first: The gyp file has a -Ishadow1 + cflag and an include_dir of shadow2. Including shadow.h should get + the shadow.h from the include_dir. */ + printf("Hello from %s\n", SHADOW_STRING); + return 0; +} |