Added additional type size limits.

This commit is contained in:
Christoffer Lerno
2025-12-30 13:42:14 +01:00
parent 9bd04526e8
commit 493a084745
7 changed files with 73 additions and 5 deletions

View File

@@ -0,0 +1,5 @@
fn int main()
{
int[0x80000000][1] x; // #error: This type would exceed max type size of 2 GB.
return 0;
}

View File

@@ -0,0 +1,6 @@
const FOO = (int[0x80000000][1]) {}; // #error: This type would exceed max type size of 2 GB.
fn int main()
{
return 0;
}