diff options
| author | bellard <bellard> | 2003-05-18 18:48:33 +0000 |
|---|---|---|
| committer | bellard <bellard> | 2003-05-18 18:48:33 +0000 |
| commit | 638e666c42bcc3f65499baa0660d558a2b40ad8f (patch) | |
| tree | aecee10fcd007e7613e8698595278c776f601fbb /tcctest.c | |
| parent | e58bda52cd4a12b6b2fae30588d19bd1528c70d8 (diff) | |
| download | tinycc-638e666c42bcc3f65499baa0660d558a2b40ad8f.tar.gz tinycc-638e666c42bcc3f65499baa0660d558a2b40ad8f.tar.bz2 | |
fixed zero arg macro parse
Diffstat (limited to 'tcctest.c')
| -rw-r--r-- | tcctest.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -253,6 +253,12 @@ void macro_test(void) /* test macro substituion inside args (should not eat stream) */ printf("qq=%d\n", qq(qq)(2)); + /* test zero argument case. NOTE: gcc 2.95.x does not accept a + null argument without a space. gcc 3.2 fixes that. */ + +#define qq1(x) 1 + printf("qq1=%d\n", qq1( )); + /* comment with stray handling *\ / /* this is a valid *\/ comment */ |
