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]

[PATCH] testsuite/20_util/forward/1_neg.cc: Move dg-error to right line.


The dg-error was on the wrong line in this test. It happened to
pass by chance because it was on line 31 and the error happened at
location 30:31 so the column number matched the dg-error line number!

Running with -fno-show-column caused it to fail.

Splitting the expression into three lines allows us to put the
dg-error with the right sub-expression, and make sure it matches
what's intended.

Tested powerpc64le-linux, committed to trunk.

Attachment: patch.txt
Description: Text document


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