Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / tcc / 109_float_struct_calling.c
blob5c4b0f6b17050d1365630f957e07744ff0433f5b
1 #include <stdio.h>
3 /* This test used to fail on x86_64 on linux with sse registers */
5 struct Point {
6 float x;
7 float y;
8 };
10 struct Rect {
11 struct Point top_left;
12 struct Point size;
15 float foo(struct Point p, struct Rect r) {
16 (void)p;
17 return r.size.x;
20 int main(int argc, char **argv) {
21 struct Point p = {1, 2};
22 struct Rect r = {{3, 4}, {5, 6}};
23 (void)argc;
24 (void)argv;
25 printf("%f\n", foo(p, r));
26 return 0;