call_large_const_global_struct_byval.c (377B)
1 struct S { 2 void* next; 3 void* prev; 4 void* child; 5 int type; 6 void* valuestring; 7 int valueint; 8 double valuedouble; 9 void* string; 10 }; 11 12 static int read_struct(struct S v) { 13 return (v.type == 0 && v.valuestring == 0 && v.valuedouble == 0.0) ? 0 : 1; 14 } 15 16 static const struct S invalid = {0, 0, 0, 0, 0, 0, 0.0, 0}; 17 18 int test_main(void) { return read_struct(invalid); }