struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / declafterstmt.c
blobbaf468cb59ea4bfcebe16029c6618382fb3eddcf
1 /** Tests declarations after statements within the same block (C99).
2 */
3 #include <testfwk.h>
5 void
6 testDeclAfterStmt(void)
8 int a = 0;
9 a++;
10 int b = 1;
12 int a = 0;
14 int c = a + b;
15 ASSERT(c == 2);