Sam James (sjames) <[email protected]>) commented on the code:

> +++ gcc/testsuite/gcc.dg/Wunterminated-string-initialization.c
> @@ -32,1 +36,3 @@
> -  .tag4 = { 'D', 'D', 'D', 'D' }
> +  .tag4 = { 'D', 'D', 'D', 'D' },
> +  .utf16_1 = u"AAAA",
> +  .utf16_1 = u"BBBBB" /* { dg-warning "initializer-string for array of 
> 'char' is too long" } */
This doesn't look right to me. We _don't_ want to warn in this case. You can 
just have nothing here (delete the added `dg-warning`, but keep the lines 
otherwise) as it'll get flagged as 'excess errors', or you could add an 
explicit `dg-bogus` line instead.


--
https://forge.sourceware.org/gcc/gcc/pulls/256#issuecomment-7939

Reply via email to