Hi Mark,

On 9/19/19 3:40 PM, Mark Eggleston wrote:
The following warning is produced when -fno-automatic and -frecursive are used at the same time:

f951: Warning: Flag '-fno-automatic' overwrites '-frecursive'

This patch allows the warning to be switched off using a new option, -Woverwrite-recursive, initialised to on.

I don't have a test case for this as I don't know how to test for a warning that isn't related to a line of code.

Try:

! { dg-warning "Flag .-fno-automatic. overwrites .-frecursive." "" { target *-*-* } 0 }

The syntax is { dg-warning "message", "label" {target ...} linenumber }, where linenumber = 0 means it can be on any line.

If the output doesn't match (but I think it does with "Warning:"), general messages can be caught with "dg-message".


Thanks,

Tobias


Reply via email to