https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93857
Bug ID: 93857 Summary: missing test for diagnostic: using integer constants in boolean context Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: roland.illig at gmx dot de Target Milestone: --- From c-common.c: > warning_at (EXPR_LOCATION (expr), OPT_Wint_in_bool_context, > "%<?:%> using integer constants in boolean context, " > "the expression will always evaluate to %<true%>"); The text "using integer constants in boolean context" does not appear in the test suite. As an i18n translator, I'd like to see example code for each diagnostic, and having a test is a good way for that.