[Driver,test] Add -Wno-msvc-not-found to gcc-param.c

Fixes: 56c4971d33

If the default target triple uses visualstudio::Linker::ConstructJob,
when a MSVC installation cannot be found, there will be a
-Wmsvc-not-found diagnostic, which is turned to an error due to -Werror.

We have many driver tests that don't specify --target= and would get a
-Wmsvc-not-found warning, but this might be the only that uses -Werror
and is not skipped by a `UNSUPPORTED`.
This commit is contained in:
Fangrui Song
2024-06-07 11:45:10 -07:00
parent e20b904721
commit c3a50879df

View File

@@ -1,2 +1,2 @@
// RUN: touch %t.o
// RUN: %clang -Werror --param ssp-buffer-size=1 %t.o -###
// RUN: %clang -Werror -Wno-msvc-not-found --param ssp-buffer-size=1 %t.o -###