File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,22 @@ subroutine test_check_fortran_source_runs(error)
68
68
link_flags= " -some-really-invalid-link-flag" )) then
69
69
call test_failed(error, " Invalid build and link flags did not trigger an error" )
70
70
return
71
- end if
71
+ end if
72
+
73
+ ! > Test the flag check wrapper
74
+ if (compiler% check_flags_supported(compile_flags= ' -Werror=unknown-flag' )) then
75
+ call test_failed(error, " Invalid compile flags did not trigger an error" )
76
+ return
77
+ end if
78
+ if (compiler% check_flags_supported(link_flags= ' -Wl,--nonexistent-linker-option' )) then
79
+ call test_failed(error, " Invalid link flags did not trigger an error" )
80
+ return
81
+ end if
82
+ if (compiler% check_flags_supported(compile_flags= ' -Werror=unknown-flag' , &
83
+ link_flags= ' -Wl,--nonexistent-linker-option' )) then
84
+ call test_failed(error, " Invalid compile and link flags did not trigger an error" )
85
+ return
86
+ end if
72
87
73
88
end subroutine test_check_fortran_source_runs
74
89
You can’t perform that action at this time.
0 commit comments