Hi!
I found an issue with the tcc compiler. Simple code snippet is in the
attachment.
I am running tcc version 0.9.27 (x86_64 Linux).
Regards, Ben
#include <stdio.h>
typedef struct {
float x,y,z;
}Vec3f;
void hello (float a, Vec3f b) {
printf("%.2f, %.2f, %.2f, %.2f\n", a, b.x, b.y, b.z);
}
int main() {
printf("Hello, world!\n");
Vec3f one_two_three = {1.1f,2.2f,3.3f};
hello(4.1f, one_two_three); //Outputs 4.10, 1.10, 2.20, 1.10 instead of 4.10, 1.10, 2.20, 3.30
return 0;
}
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel