gcc_bit_field_types.c revision 1.2
1/* $NetBSD: gcc_bit_field_types.c,v 1.2 2021/05/02 21:47:28 rillig Exp $ */ 2# 3 "gcc_bit_field_types.c" 3 4/* 5 * https://gcc.gnu.org/onlinedocs/gcc/Structures-unions-enumerations-and-bit-fields-implementation.html 6 * 7 * "Other integer types, such as long int, and enumerated types are permitted 8 * even in strictly conforming mode." 9 * 10 * See msg_035.c. 11 */ 12 13struct example { 14 int int_flag: 1; 15 unsigned int unsigned_int_flag: 1; 16 long long_flag: 1; /* expect: 35 *//*FIXME*/ 17 unsigned long unsigned_long_flag: 1; /* expect: 35 *//*FIXME*/ 18 long long long_long_flag: 1; /* expect: 35 *//*FIXME*/ 19 unsigned long long unsigned_long_long_flag: 1; /* expect: 35 *//*FIXME*/ 20 double double_flag: 1; /* expect: 35 */ 21}; 22