s.c

#include <stdio.h>
struct __attribute__((__packed__)) MyS {
        char a;
        short b;
};
void main() {
        printf("sizeof(MyS) = %ld\n", sizeof(struct MyS));
}


gcc will produce a result of 3, but tcc will produce a result of 4.



[email protected]
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to