c-typeck.c (digest_init): Don't allow arrays of signed or unsigned variants of…
c-typeck.c (digest_init): Don't allow arrays of signed or unsigned variants of wchar_t to be initialized... * c-typeck.c (digest_init): Don't allow arrays of signed or unsigned variants of wchar_t to be initialized by wide string constants. Do allow arrays of enumerated types compatible with wchar_t to be initialized by wide string constants. Refine tests distinguishing wide and narrow strings and arrays. Give specific error for arrays of other integer types initialized by string constants. (output_init_element, process_init_element): Check for INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when initializing with string constants. testsuite: * gcc.dg/init-string-2.c: New test. From-SVN: r85146
Showing
gcc/testsuite/gcc.dg/init-string-2.c
0 → 100644
Please
register
or
sign in
to comment