Added missing tests
git-svn-id: http://picoc.googlecode.com/svn/trunk@166 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
parent
878e545b20
commit
2e0ff8774c
6
tests/12_hashdefine.c
Normal file
6
tests/12_hashdefine.c
Normal 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));
|
||||||
|
|
1
tests/12_hashdefine.expect
Normal file
1
tests/12_hashdefine.expect
Normal file
|
@ -0,0 +1 @@
|
||||||
|
12
|
12
tests/13_integer_literals.c
Normal file
12
tests/13_integer_literals.c
Normal 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);
|
||||||
|
|
5
tests/13_integer_literals.expect
Normal file
5
tests/13_integer_literals.expect
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
24680
|
||||||
|
342391
|
||||||
|
2386092
|
||||||
|
2386092
|
||||||
|
1365
|
Loading…
Reference in a new issue