mirror of
https://github.com/frida/tinycc
synced 2024-12-22 13:12:34 +03:00
d0d25ec7df
The include directive needs to be parsed as pp-tokens, not as token (i.e. no conversion to TOK_STR or TOK_NUM). Also fix parsing computed includes using quoted strings.
14 lines
407 B
C
14 lines
407 B
C
/* This file is to test compute #include directives. It's named so
|
|
that it starts with a pre-processing number which isn't a valid
|
|
number (42test.h). Including this must work. */
|
|
#ifndef INC42_FIRST
|
|
int have_included_42test_h;
|
|
#define INC42_FIRST
|
|
#elif !defined INC42_SECOND
|
|
#define INC42_SECOND
|
|
int have_included_42test_h_second;
|
|
#else
|
|
#define INC42_THIRD
|
|
int have_included_42test_h_third;
|
|
#endif
|