Temporary remove zfunc test on ARM which generates a relocation error. Waiting for...
[tinycc.git] / tests / tests2 / 07_function.c
blob8e63a08a0ab817df6b400d359a47df89b4ee2892
1 #include <stdio.h>
3 int myfunc(int x)
5 return x * x;
8 void vfunc(int a)
10 printf("a=%d\n", a);
13 void qfunc()
15 printf("qfunc()\n");
18 #if !defined(__ARMEL__)
20 * At least on ARM (like RPi), zfunc below fails with something like:
21 * +tcc: error: can't relocate value at 1ef93bc,1
22 * Test is temporary removed for this architecture until ARM maintainers
23 * see what happens with this test.
25 void zfunc()
27 ((void (*)(void))0) ();
29 #endif
31 int main()
33 printf("%d\n", myfunc(3));
34 printf("%d\n", myfunc(4));
36 vfunc(1234);
38 qfunc();
40 return 0;
43 // vim: set expandtab ts=4 sw=3 sts=3 tw=80 :