Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic SEH test fails #117420

Open
jaykrell opened this issue Nov 23, 2024 · 1 comment
Open

basic SEH test fails #117420

jaykrell opened this issue Nov 23, 2024 · 1 comment

Comments

@jaykrell
Copy link

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.

@EugeneZelenko
Copy link
Contributor

Could you please try 19 or main branch? https://godbolt.org should be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants