diffblue-cbmc/regression/ansi-c/Struct_Initialization1
Michael Tautschnig 9740142bed Handle array initialization with a non-array gracefully
clang -Wall says:

Struct_Initialization1/main.c:16:38: warning: suggest braces around initialization of subobject [-Wmissing-braces]
struct _classinfo nullclass1 = { 42, 1, 2, 3, 4 };
                                     ^~~~
                                     {   }
and then constructs a suitable object.

Our implementation now attempts to build an initializer list if a
variable-length array is encountered; if this succeeds, the same suitable object
is constructed. Variable-length arrays in the middle of a struct are not
permitted (neither by GCC nor Clang or our C front-end).
2017-07-19 10:19:03 +01:00
..
main.c Handle array initialization with a non-array gracefully 2017-07-19 10:19:03 +01:00
test.desc Handle array initialization with a non-array gracefully 2017-07-19 10:19:03 +01:00