On Sat, Jul 20, 2019 at 03:48:40PM -0600, Martin Sebor wrote: > On 7/20/19 11:29 AM, JeanHeyd Meneide wrote: > >+[[nodiscard(123)]] int check1 (void); /* { dg-error "nodiscard attribute > >argument.*must be a string" } */ > > Using .* might be safe in a test with a single line of output but > not in other tests where it might consume newlines. It's best to
Just start the string with (?n) and all is good. Segher