On 12/20/2017 12:45 PM, David Malcolm wrote:
> Maybe this is overkill, but this patch adds a selftest that:
>
> fold_for_warn (error_mark_node)
>
> does the right thing.
>
> Successfully bootstrapped®rtested on x86_64-pc-linux-gnu.
>
> Manually tested with "make s-selftest-c++" (since we don't run
> the selftests for cc1plus by default).
>
> OK for trunk?
>
> gcc/c-family/ChangeLog:
> * c-common.c: Include "selftest.h".
> (selftest::test_fold_for_warn): New function.
> (selftest::c_common_c_tests): New function.
> (selftest::c_family_tests): Call it.
OK.
jeff