On 1/29/25 11:35 AM, Dimitar Dimitrov wrote:
The test case assumes that alignof(int)=sizeof(int).  But for some
targets this is not valid.  For example, for PRU target,
alignof(int)=1 but sizeof(int)=4.

Fix the test case to align to twice the size of int, as the expected
dg-error messages suggest.

This patch fixes the test failures for PRU target.

Ok for trunk?

gcc/testsuite/ChangeLog:

        * gcc.dg/pr116357.c: Use sizeof(int) instead of alignof(int).
OK.
jeff

Reply via email to