]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/testsuite/gfortran.dg/include_14.f90
Fortran: Improve -Wmissing-include-dirs warnings [PR55534]
[thirdparty/gcc.git] / gcc / testsuite / gfortran.dg / include_14.f90
index b306b2c813b9f2179476d24d7096f51759f4bdf2..8110e49bf4305066cbc256c1e55be70583c0294b 100644 (file)
@@ -1,5 +1,6 @@
-! { dg-additional-options "-cpp -idirafter /fdaf/ -I bar" }
+! { dg-additional-options "-cpp -idirafter /fdaf/ -I bar -J foo/bar" }
 end
+! default: warn for -I and -J but ignore other options.
+! { dg-warning "Nonexistent include directory 'bar/'" "" { target *-*-* } 0 }
+! { dg-warning "Nonexistent include directory 'foo/bar/'" "" { target *-*-* } 0 }
 
-! { dg-warning "/fdaf/: No such file or directory" "" { target *-*-* } 0 }
-! { dg-warning "bar: No such file or directory" "" { target *-*-* } 0 }