diff options
Diffstat (limited to 'tests/pp')
| -rw-r--r-- | tests/pp/15.c | 5 | ||||
| -rw-r--r-- | tests/pp/15.expect | 20 |
2 files changed, 25 insertions, 0 deletions
diff --git a/tests/pp/15.c b/tests/pp/15.c index 28a12bd..dc2b8d1 100644 --- a/tests/pp/15.c +++ b/tests/pp/15.c @@ -19,3 +19,8 @@ return A + B; #define B1 C1+2 #define C1 A1+3 return A1 + B1; + +#define i() x +#define n() 1 +i()i()n()n()i() +i()+i()-n()+n()- diff --git a/tests/pp/15.expect b/tests/pp/15.expect index 7ccee4a..d3d3dd5 100644 --- a/tests/pp/15.expect +++ b/tests/pp/15.expect @@ -1,6 +1,26 @@ + + Z(1) Z(Z(1)) Z(Z(Z(Z(Z(1))))) + + + return A + B; + + + + + + return A+1 + B+1; + + + + return A1+3 +2 +1 + B1+1 +3 +2; + + + +x x 1 1 x +x+x-1 +1 - |
