Hi,
As Joseph reported during a C Committee discussion, these operators
should return a value, which must not be qualified. I've added tests
making sure that the result is not qualified.
I haven't tested for regressions, as this only changes tests. What I've
done instead is 'make bootstrap && make check', and inspect the test
results (without comparing to trunk). The tests still pass. See
results below.
alx@devuan:~/src/gnu/gcc/mq1$ head gcc/testsuite/gcc/gcc.sum
Test run by alx on Wed Jan 21 03:04:10 2026
Native configuration is x86_64-pc-linux-gnu
=== gcc tests ===
Schedule of variations:
unix
Running target unix
Running
/home/alx/src/gnu/gcc/mq/gcc/testsuite/gcc.c-torture/compile/compile.exp ...
alx@devuan:~/src/gnu/gcc/mq1$ grep maxof-compile
gcc/testsuite/gcc/gcc.sum
PASS: gcc.dg/maxof-compile.c (test for errors, line 100)
PASS: gcc.dg/maxof-compile.c (test for errors, line 101)
PASS: gcc.dg/maxof-compile.c (test for errors, line 102)
PASS: gcc.dg/maxof-compile.c (test for errors, line 103)
PASS: gcc.dg/maxof-compile.c (test for errors, line 109)
PASS: gcc.dg/maxof-compile.c (test for errors, line 111)
PASS: gcc.dg/maxof-compile.c (test for errors, line 113)
PASS: gcc.dg/maxof-compile.c (test for errors, line 114)
PASS: gcc.dg/maxof-compile.c (test for errors, line 120)
PASS: gcc.dg/maxof-compile.c (test for errors, line 121)
PASS: gcc.dg/maxof-compile.c (test for errors, line 122)
PASS: gcc.dg/maxof-compile.c (test for errors, line 123)
PASS: gcc.dg/maxof-compile.c (test for errors, line 71)
PASS: gcc.dg/maxof-compile.c (test for errors, line 73)
PASS: gcc.dg/maxof-compile.c (test for errors, line 75)
PASS: gcc.dg/maxof-compile.c (test for errors, line 77)
PASS: gcc.dg/maxof-compile.c (test for errors, line 79)
PASS: gcc.dg/maxof-compile.c (test for errors, line 80)
PASS: gcc.dg/maxof-compile.c (test for errors, line 81)
PASS: gcc.dg/maxof-compile.c (test for errors, line 82)
PASS: gcc.dg/maxof-compile.c (test for errors, line 88)
PASS: gcc.dg/maxof-compile.c (test for errors, line 89)
PASS: gcc.dg/maxof-compile.c (test for errors, line 98)
PASS: gcc.dg/maxof-compile.c (test for errors, line 99)
PASS: gcc.dg/maxof-compile.c (test for excess errors)
PASS: gcc.dg/maxof-compile.c syntax error at line 110 (test for errors,
line 109)
PASS: gcc.dg/maxof-compile.c syntax error at line 112 (test for errors,
line 111)
PASS: gcc.dg/maxof-compile.c syntax error at line 72 (test for errors,
line 71)
PASS: gcc.dg/maxof-compile.c syntax error at line 74 (test for errors,
line 73)
PASS: gcc.dg/maxof-compile.c syntax error at line 76 (test for errors,
line 75)
PASS: gcc.dg/maxof-compile.c syntax error at line 78 (test for errors,
line 77)
Have a lovely day!
Alex
Alejandro Colomar (1):
gcc/testsuite/gcc.dg/maxof-compile.c: Add tests using qualifiers
gcc/testsuite/gcc.dg/maxof-compile.c | 9 +++++++++
1 file changed, 9 insertions(+)
Range-diff against v0:
-: ------------ > 1: 2401b8c0a5bf gcc/testsuite/gcc.dg/maxof-compile.c: Add
tests using qualifiers
--
2.51.0