On 20 June 2012 10:35, Jason Merrill <ja...@redhat.com> wrote: > Applied, thanks. Note that your dg-error regexp doesn't make much sense: > > > // { dg-error "expected type-specifier before 'final'||expected > ';'||declaration doesn't declare anything" } > > Regular expression "or" uses a single |, so this ends up being a long way of > writing > > // { dg-error "" }
Funny. The testcasewriting gcc wiki page at http://gcc.gnu.org/wiki/TestCaseWriting suggests a double pipe. Quoth the Raven: Should a line produce two errors, the regular expression should include an "||" (ie. a regular expression OR) between the possible message fragments. If a single pipe is indeed to be used, perhaps we want to correct that piece of documentation, lest fools follow its advice. :)