diff options
| author | 2026-03-24 20:13:28 +0100 | |
|---|---|---|
| committer | 2026-03-24 20:13:28 +0100 | |
| commit | 803dbff03b7c30f276f6b8923b1c6b0a28e7b4f6 (patch) | |
| tree | 13b7c0576e313b4e63318055bcbc5ff9667f60f8 /test/07-pp.c | |
| parent | fbb7bd3e9a67a0390c7de5667a8141fcbb1d58e2 (diff) | |
cpp: support directives within macro argument list
Undefined behavior by the standard but a GNU extension.
Diffstat (limited to 'test/07-pp.c')
| -rw-r--r-- | test/07-pp.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/07-pp.c b/test/07-pp.c index 47fb959..4301dbd 100644 --- a/test/07-pp.c +++ b/test/07-pp.c @@ -14,6 +14,7 @@ token spacing: sum = 1 + 2 +3;$ [ baz] ;$ +. *$ +x=7 */ #include "07-pp.h" @@ -129,5 +130,15 @@ S\ qx2(*) ) "$\n" ); +#define A(x,y) x=y + A(int x, +#if 1 + 7 +#else + 3 +#endif + ); + printf("x=%d\n",x); + CAT(ret,urn) 0; } |