From 111e71e1511b2abff9176bd6c714c8da796f770e Mon Sep 17 00:00:00 2001 From: lemon Date: Sun, 16 Nov 2025 12:11:18 +0100 Subject: basic automated testing --- test/07-pp.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test/07-pp.h (limited to 'test/07-pp.h') diff --git a/test/07-pp.h b/test/07-pp.h new file mode 100644 index 0000000..63de6f5 --- /dev/null +++ b/test/07-pp.h @@ -0,0 +1,24 @@ +#ifndef GUARD +#define GUARD + +extern int printf(const char *, ...); +extern warnhere(); +#define Foo 9 +void hi(int x) { + printf("hi from header ;%d\n", x); +} +#if 1 +#endif +#elifndef Ww +#define Bar 7 +#define SQR_(x) ((x)*(x)) +#define SQR(y) SQR_(1+(y)-1) +#define ADD(a,b) (a)+(b) +#define STR(h) #h + +#define xstr(s1) str(s1) +#define str(...) #__VA_ARGS__ + +#endif + +extern int printf(const char *, ...); -- cgit v1.2.3