mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
19 lines
345 B
Plaintext
19 lines
345 B
Plaintext
|
|
// TODO
|
|
//const int CONSTANT = 1;
|
|
//int[CONSTANT] a;
|
|
|
|
//const bool B = true;
|
|
//i32[B] c; // @error{size of array has non-integer type 'bool'}
|
|
|
|
int non_constant = 10;
|
|
int[non_constant] b; // #error: Expected a constant value as
|
|
|
|
func int foo()
|
|
{
|
|
return 10;
|
|
}
|
|
|
|
int[foo()] c; // #error: Expected a constant value as
|
|
|