~mcf/cproc

ref: 34ae0d48e9669687003c26f94e07fa00d12dd41f cproc/test/bitfield-integer-promotion-long.c -rw-r--r-- 303 bytes
34ae0d48Michael Forney Add tests for char/wchar_t signedness 8 months ago
                                                                                
1
2
3
4
5
6
struct {unsigned long x:31;} s1;
struct {unsigned long x:32;} s2;
struct {unsigned long x:33;} s3;
int c1 = __builtin_types_compatible_p(__typeof__(+s1.x), int);
int c2 = __builtin_types_compatible_p(__typeof__(+s2.x), unsigned);
int c3 = __builtin_types_compatible_p(__typeof__(+s3.x), unsigned long);