On 12/22/22 16:56, Arsen Arsenović wrote:
Hi,

Jason Merrill <ja...@redhat.com> writes:
+    # Newlines should be more tolerant.
+    s/\n$/(\\n|\\r\\n|\\r)*/;

Isn't specifically handling \\r\\n redundant with the * operator?

To the extent of my knowledge, yes; I left that in since the original
tests I was replacing with this script also used this terminator:

-// { dg-output "default std::handle_contract_violation called: .*.C 21 
test<double>::fun .*(\n|\r\n|\r)*" }

Aha, I wonder why the original tests have the terminal *? Testcases elsewhere in the testsuite that check for (\n|\r\n|\r) don't use *. I think I'll drop the * from both the tests and the script.

Jason

Reply via email to