Added missing tests

git-svn-id: http://picoc.googlecode.com/svn/trunk@166 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
zik.saleeba 2009-03-08 01:10:29 +00:00
parent 878e545b20
commit 2e0ff8774c
4 changed files with 24 additions and 0 deletions

6
tests/12_hashdefine.c Normal file
View file

@ -0,0 +1,6 @@
#define FRED 12
#define BLOGGS(x) (12*(x))
printf("%d\n", FRED);
//printf("%d, %d, %d\n", BLOGGS(1), BLOGGS(2), BLOGGS(3));

View file

@ -0,0 +1 @@
12

View file

@ -0,0 +1,12 @@
int a = 24680;
int b = 01234567;
int c = 0x2468ac;
int d = 0x2468AC;
int e = 0b010101010101;
printf("%d\n", a);
printf("%d\n", b);
printf("%d\n", c);
printf("%d\n", d);
printf("%d\n", e);

View file

@ -0,0 +1,5 @@
24680
342391
2386092
2386092
1365