picoc/tests/67_macro_crash.c
zik.saleeba 62ca6eacf1 Fixed issue #192 - "Define macro inside a function block will crash picoc".
Macros inside functions now work correctly.


git-svn-id: http://picoc.googlecode.com/svn/trunk@605 21eae674-98b7-11dd-bd71-f92a316d2d60
2014-03-01 02:54:09 +00:00

13 lines
184 B
C

#include <stdio.h>
void printArray(void) {
#define SIZE 10
int array[SIZE] = {5, 4, 3, 9, 1, 8, 6, 7, 5, 2};
printf("4: %d\n", array[4]);
}
void main()
{
printArray();
}