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

    <tr>
        <th>Summary</th>
        <td>
            LLVM failed to run 2 tests on x64 and failed to run 6 tests on x86 on release and debug configuration with MSVC on windows
        </td>
    </tr>

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

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

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

<pre>
    Hi All,

LLVM failed to run 2 tests on x64 and failed to run 6 tests on x86 on release and debug configuration with MSVC on windows. it can be reproduced on 4763e87 on main branch. Could you please help look at this issue?

Environment:
VS 2019 + Windows Server 2019

Repro steps:
1. git clone https://github.com/llvm/llvm-project.git F:\gitP\llvm\llvm-project
2. set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=x86 -arch=x86
3. cd F:\gitP\llvm\llvm-project\build_x86
4. cmake -G "Visual Studio 16 2019" -A Win32 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DLLVM_ENABLE_PROJECTS="clang" ..\llvm 2>&1
5. cd F:\gitP\llvm\llvm-project\build_x86
6. msbuild /maxcpucount:4 /p:Platform=Win32 /p:Configuration=RelWithDebInfo /p:PreferredToolArchitecture=x64 LLVM.sln /t:Rebuild 2>&1
7. set PATH=C:\Python\Python37\;%PATH% 2>&1
8. set PATH=C:\Python\Python37\Scripts;%PATH% 2>&1
9. set PATH=F:\tools\gnuwin32\bin;%PATH% 2>&1
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" 2>&1

Error info:
on x86: 
Failed Tests (6):
  Clang :: ExtractAPI/anonymous_record_no_typedef.c
  Clang :: Index/copy-assignment-operator.cpp
  Clang :: Index/move-assignment-operator.cpp
  Clang :: Lexer/SourceLocationsOverflow.c
  Clang :: SemaCXX/warn-cast-function-type-strict.cpp
  Clang :: SemaCXX/warn-cast-function-type.cpp

on x64:
Failed Tests (2):
 Clang :: ExtractAPI/anonymous_record_no_typedef.c
  Clang :: Lexer/SourceLocationsOverflow.c

[test on x64.log](https://github.com/llvm/llvm-project/files/10163617/test.on.x64.log)
[test on x86.log](https://github.com/llvm/llvm-project/files/10163620/test.on.x86.log)

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