This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add selftest for "fold_for_warn (error_mark_node)"


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&regrtested 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]