picoc/tests/65_typeless.c
zik.saleeba 3d5e022272 Added new tests from picoc-fork
git-svn-id: http://picoc.googlecode.com/svn/trunk@598 21eae674-98b7-11dd-bd71-f92a316d2d60
2013-03-16 06:24:48 +00:00

21 lines
357 B
C

#include "stdio.h"
void main()
{
x = 3.9;
y = 4;
z = &y;
msg = "hi there";
printf("%d %d %d %s\n", x*2, y*2, *z, msg);
printf("%d %d %d\n", sizeof(x), sizeof(y), sizeof(msg));
for (i = 1; i <= 3; i++)
printf("%d\n", i);
/* this should fail
{
int q = 5;
}
q = 3.14; // should say error
*/
}