| ! RUN: %flang -Wknown-bad-implicit-interface %s -c 2>&1 | FileCheck %s --check-prefix=WARN |
| ! RUN: %flang -pedantic -Wno-known-bad-implicit-interface %s -c 2>&1 | FileCheck %s --allow-empty |
| ! RUN: not %flang -WKnownBadImplicitInterface %s -c 2>&1 | FileCheck %s --check-prefix=ERROR1 |
| ! RUN: not %flang -WKnown-Bad-Implicit-Interface %s -c 2>&1 | FileCheck %s --check-prefix=ERROR2 |
| |
| ! ERROR1: error: Unknown diagnostic option: -WKnownBadImplicitInterface |
| ! ERROR2: error: Unknown diagnostic option: -WKnown-Bad-Implicit-Interface |
| |
| program disable_diagnostic |
| REAL :: x |
| INTEGER :: y |
| ! CHECK-NOT: warning |
| ! WARN: warning: If the procedure's interface were explicit, this reference would be in error |
| call sub(x) |
| ! WARN: warning: If the procedure's interface were explicit, this reference would be in error |
| call sub(y) |
| end program disable_diagnostic |
| |
| subroutine sub() |
| end subroutine sub |