<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/65435>65435</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            LLVM fails to runtest on MSVC on WIndows in debug and release mode
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          KawasakiNinjaH2R
      </td>
    </tr>
</table>

<pre>
    Hi all, Can you please take a look at this issue? Thanks in advance!

### Environment
OS: Windows Server 2022 Datacenter 21H2
CMake: 10.0.22621.0
Visual Studio: Visual Studio 2022 17

### Expected behavior
Test pass.

### Expected behavior
[test.log](https://github.com/llvm/llvm-project/files/12531639/test.log)
Failed Tests (9):
  Clang :: AST/ast-dump-attr-json.cpp
  Clang :: AST/ast-dump-stmt-json.cpp
  Clang :: Driver/cuda-detect.cu
  Clang :: Driver/cuda-march.cu
  Clang :: Driver/cuda-options.cu
  Clang :: Driver/dwarf-target-version-clamp.cu
  Clang :: Driver/offloading-interoperability.c
  Clang :: ExtractAPI/emit-symbol-graph/multi_file.c
  Clang :: ExtractAPI/emit-symbol-graph/single_file.c

### Steps to reproduce the behavior
1. cd F:\gitP\llvm\llvm-project\build_amd64
2. cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.22621.0 -DLLVM_ENABLE_PROJECTS="clang" ..\llvm 2>&1
3. set _CL_=/D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR
4. cd F:\gitP\llvm\llvm-project\build_amd64
5. msbuild /maxcpucount:4 /p:Platform=x64 /p:Configuration=RelWithDebInfo /p:PreferredToolArchitecture=x64 LLVM.sln /t:Rebuild 2>&1
6. set PATH=C:\Python\Python39\;%PATH% 2>&1
7. set PATH=C:\Python\Python39\Scripts;%PATH% 2>&1
8. set PATH=F:\tools\gnuwin32\bin;%PATH% 2>&1
9. cd F:\gitP\llvm\llvm-project\build_amd64
10. rename ..\clang\test\Interpreter\execute.cpp execute.cpp.bak 2>&1
11. rename ..\clang\test\utils\update_cc_test_checks\check-globals.test check-globals.test.bak 2>&1
12. rename ..\clang\test\Driver\hip-link-bundle-archive.hip hip-link-bundle-archive.hip.bak 2>&1
13. rename ..\clang\test\SemaCXX\attr-trivial-abi.cpp attr-trivial-abi.cpp.bak 2>&1
14. python.exe ../llvm/utils/lit/lit.py -v --no-progress-bar --param build_mode=RelWithDebInfo --param clang_site_config=./tools/clang/test/lit.site.cfg ./tools/clang/test -j 4 --filter-out ="utils/update_cc_test_checks*|clang-rename*|Tooling/clang-diff-json.cpp|Refactor/Extract/ExtractExprIntoFunction.cpp|Refactor/Extract/ObjCProperty.m|Refactor/tool-test-support.c|Preprocessor/traditional-cpp.c|PCH/preamble.c|Lexer/eof-conflict-marker.c|Lexer/conflict-marker.c|Index/cxx11-lambdas.cpp|Index/cxx14-lambdas.cpp|Index/get-cursor.cpp|Index/index-templates.cpp|Index/pch-opaque-value.cpp|Index/record*|Index/retain-comments-from-system-headers.c|Index/usrs*|Format/xmloutput.cpp|ExtractAPI/underscored.c|ExtractAPI/macros.c|Driver/at_file.c|CodeGen/debug-info-file-checksum.c|CodeGen/debug-info-embed-source.c|Analysis/diagnostics/sarif*|ARCMT/p*|ARCMT/objcmt*|ARCMT/designated*|ARCMT/atautorelease.m|ARCMT/allowlisted*|ARCMT/GC-no-finalize-removal.m|utils/update_cc_test_checks*|AST/ast-dump-pragma-json.c|CXX/class/class.mfct/p1-cxx20.cpp|Driver/linker-wrapper.c|ExtractAPI/anonymous_record_no_typedef.c|Lexer/SourceLocationsOverflow.c|AST/ast-dump-template-json-win32-mangler-crash.cpp|SemaCXX/warn-unsafe-buffer-usage-fixits-parm-span.cpp" >  test.log

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycV11z2jrz_zTKjUYeLGMSLrigBtr8T9JkAqfN_4pZy2tQIkt-9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