scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit a8037f55854706a8d4c66e71ab14f8f3628ae4ee
parent e68f166404a9e69305734b7c4fd44fc0b301eb52
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 11 May 2016 16:52:25 +0200

[cc1] Add test for non macro alike functions with paranthesis

Diffstat:
Acc1/tests/test061.c | 22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)

diff --git a/cc1/tests/test061.c b/cc1/tests/test061.c @@ -0,0 +1,22 @@ +/* +name: TEST061 +description: Test for macros without arguments but with parenthesis +error: +output: +G3 I F "main +{ +\ + h #I1 +} +*/ + +#define X (2) +#define L (0) +#define H (1) +#define Q(x) x + +int +main(void) +{ + return X == L + H + Q(1); +}