mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Added additional type size limits.
This commit is contained in:
5
test/test_suite/arrays/array_limit.c3
Normal file
5
test/test_suite/arrays/array_limit.c3
Normal 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;
|
||||
}
|
||||
6
test/test_suite/arrays/array_limit_const.c3
Normal file
6
test/test_suite/arrays/array_limit_const.c3
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user