This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add selftest for "fold_for_warn (error_mark_node)"
- From: Jeff Law <law at redhat dot com>
- To: David Malcolm <dmalcolm at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 20 Dec 2017 21:36:29 -0700
- Subject: Re: [PATCH] Add selftest for "fold_for_warn (error_mark_node)"
- Authentication-results: sourceware.org; auth=none
- References: <1513799139-15089-1-git-send-email-dmalcolm@redhat.com>
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