From 9b45d155c3a71eaf798fde2b516dfd1a0f66257e Mon Sep 17 00:00:00 2001 From: lemon Date: Tue, 9 Apr 2024 07:56:36 +0200 Subject: frontend: basic #include --- test/pp.c | 8 ++++++++ test/pp.h | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100644 test/pp.c create mode 100644 test/pp.h (limited to 'test') diff --git a/test/pp.c b/test/pp.c new file mode 100644 index 0000000..0c199dc --- /dev/null +++ b/test/pp.c @@ -0,0 +1,8 @@ + +#include "pp.h" +int +main(void) +{ + hi(); + return Foo; +} diff --git a/test/pp.h b/test/pp.h new file mode 100644 index 0000000..69da492 --- /dev/null +++ b/test/pp.h @@ -0,0 +1,6 @@ +extern warnhere(); +#define Foo 9 +void hi() { + extern int printf(); + printf("hi from header\n"); +} -- cgit v1.2.3