<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/117420>117420</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
basic SEH test fails
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
jaykrell
</td>
</tr>
</table>
<pre>
```
C:\s>clang --version
swift.org clang version 16.0.0
Target: x86_64-unknown-windows-msvc
Thread model: posix
InstalledDir: C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin
C:\s>type 1.c
int main()
{
__try { *(volatile char*) 0; } __except(1) { return 2; }
}
C:\s>clang-cl 1.c
C:\s>1.exe
C:\s>echo %errorlevel%
-1073741819
```
That is 0xc0000005 access violation.
This program returns 2 with Visual C++.
Hm not sure about this toolchain, I'll try another later.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0U0tvozAQ_jXmMgLBACEcOOTRqJX2ttVeI2Mmwa2xI4_J49-vSIi6q6oICcT38DczjGTWR0vUiHItym0kx9A733zI26cnY6LWdbdGLNL5TrciXW1EvhLlhkX-ooy0R4jjM3nWzj5wvuhDSJw_wgOeQcgWSZrMHu_SHymIfAXX5WK_KOLRflp3sfFF285dOB74rGZq70l2MLiOzCQ4OdbXB_RmOUhjqNtqP0Fzsl-69dLfRLnZ0pmMO5EX5ebdOaN6qS2LcvM8bsVMPnDcPYgD2ZBcVXhSJyZP4lbPxX1rQbidCLJkDqttgGES4lJgPUuq9eMF9vvgbyCqNQhcCVyenZFBGwLVS3__VEMq8jWIagv7PV0VnYLAZTYBk8xTGL0FnDlP_-0P2e79j5X5yveNkiV0pR8wUr0DgSV577yZOiSwfLDiLK3yqsiW2bPI__-R5-hkAM2QXlV6v0qQShEznPW9dGeTJ1MznLw7ejnMVTIgXHTo4Y_mURrYCFwLXCf_HvA6gHUBePQEsnVjgDAZfc0PN_AmsDIGps5L60JPHowM5JOoa_KuzmsZUZNVOeZFWuV11DeVrOusqNt2WVPXyjavVF5hjagQqcRDpBtMscgyzNOyKPM6qctKddWB2q6QdduWokhpkNokxpyHaRUizTxSk2VVgWlkZEuG7zuHaOkCd1QgTivom0kUt-ORRZEazYG_bIIOhppWslbw--UVAnGAg9SGo9Gbpg_hxNMAcSdwd9ShH9tEuUHgbrKYH_HJuw9SQeDufjAL3M3Jzg3-DQAA__839jjL">