diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/hello.c | 5 | ||||
| -rw-r--r-- | test/test3.c | 16 |
2 files changed, 17 insertions, 4 deletions
diff --git a/test/hello.c b/test/hello.c index 17affa8..1e02bfc 100644 --- a/test/hello.c +++ b/test/hello.c @@ -1,5 +1,4 @@ -int printf(const char *, ...); - +printf(); int main(int argc) { - return 42; + printf("hello world\n"); } diff --git a/test/test3.c b/test/test3.c index 6940d1b..e6599bb 100644 --- a/test/test3.c +++ b/test/test3.c @@ -4,6 +4,20 @@ int test1(int a, int b, int c) { } */ -int t(int *p, int i) { +int t(unsigned short *p, short i) { return p[i]; } + +#if 1 +long test(long x) { + return x + (long)"abc"; +} +#endif + +double ff(double x, double y) +{ + return x + y + .5; +} + +long fma(long x, long y) { +return x + (y <<1) - 2147483648;} |