Files
c3c/test/test_suite/arrays/global_array_non_const.c3
2021-11-16 17:46:44 +01:00

18 lines
313 B
C

const int CONSTANT = 1;
int[CONSTANT] a2;
const bool B = true;
int[B] c2; // #error: Expected an integer size.
int non_constant = 10;
int[non_constant] b; // #error: Expected a constant value as
fn int foo()
{
return 10;
}
int[foo()] c; // #error: Expected a constant value as