On Sun, Mar 16, 2025 at 12:59:43PM -0400, David Malcolm wrote: > FWIW, I don't think there's any ordering implied by all these dg-output > directives, so that e.g.: > > +*> { dg-output "CheckBinary Properly True\n" } > +*> { dg-output "CheckBinary Properly False\n" }
I believe all the dg-output directives just concatenate their regexps together. dg-output after the target handling in there just does if { [llength ${output-text}] == 1 } { # First occurrence. set output-text [list $expected [lindex $args 1]] } else { set output-text [list $expected "[lindex ${output-text} 1][lindex $args 1]"] } Which is why matching those line separators is important, just doing *> { dg-output "foo" } *> { dg-output "bar" } would only match foobar, not foo on one line and bar on another one. Jakub