Compiler segfault when using bitwise not on number literal cast to bitstruct #2373.

This commit is contained in:
Christoffer Lerno
2025-08-06 00:55:56 +02:00
parent 24c03f9800
commit 3b6d68ef21
3 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
// #target: macos-x64
module test;
bitstruct Foo : uint
{
bool test : 2;
}
fn int main()
{
~(Foo)2;
return 0;
}