summaryrefslogtreecommitdiff
path: root/support/regression/tests/punctuators.c
blob: c76e2074c975e839f19f8a0f0b0ee2250663dc7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
   punctuators.c

   punctuators test
*/

#include <testfwk.h>

/*
 * test punctuators, as defined in ISO/IEC 9899:1999, chapter 6.4.6#3
 */
void
testPunctuators (void)
<%
%:define N        10
%:define VAL      123
%:define C(NAME)  NAME %:%: ___
  int C(a)<:N:>;

  C(a)<:0:> = VAL;
  ASSERT (a___<:0:> == VAL);
%>