https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110763
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Siddhesh Poyarekar <siddh...@gcc.gnu.org>: https://gcc.gnu.org/g:386df7ce7b38ef00e28080a779ef2dfd6949cf15 commit r14-2789-g386df7ce7b38ef00e28080a779ef2dfd6949cf15 Author: Siddhesh Poyarekar <siddh...@gotplt.org> Date: Fri Jul 21 11:13:58 2023 -0400 testsuite/110763: Ensure zero return from test The test deliberately reads beyond bounds to exersize ubsan and the return value may be anything, based on previous allocations. The OFF test caters for it by ANDing the return with 0, do the same for the DYN test. gcc/testsuite/ChangeLog: PR testsuite/110763 * gcc.dg/ubsan/object-size-dyn.c (dyn): New parameter RET. (main): Use it. Signed-off-by: Siddhesh Poyarekar <siddh...@gotplt.org>