picoc/tests/57_macro_bug.c
zik.saleeba a784b77f75 Fix for macro bug sumbitted by broscutamaker
git-svn-id: http://picoc.googlecode.com/svn/trunk@597 21eae674-98b7-11dd-bd71-f92a316d2d60
2013-03-16 06:09:32 +00:00

18 lines
284 B
C

#include "stdio.h"
#define MIN(a,b) ((a) < (b) ? (a) : (b))
void main()
{
float x = MIN(1,2);
int y = 14;
float z;
z = MIN(y, 13.5);
y = MIN(y, 13);
float pi = 3.14;
int pi_int = pi;
printf("Macro test: %d %d %f %d \n", x, y, z, pi_int);
}