Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc / support / regression / tests / punctuators.c
blobc76e2074c975e839f19f8a0f0b0ee2250663dc7f
1 /*
2 punctuators.c
4 punctuators test
5 */
7 #include <testfwk.h>
9 /*
10 * test punctuators, as defined in ISO/IEC 9899:1999, chapter 6.4.6#3
12 void
13 testPunctuators (void)
15 %:define N 10
16 %:define VAL 123
17 %:define C(NAME) NAME %:%: ___
18 int C(a)<:N:>;
20 C(a)<:0:> = VAL;
21 ASSERT (a___<:0:> == VAL);