mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Recursive constant definition not properly detected, leading to assert #2780
This commit is contained in:
4
test/test_suite/constants/recursive_constant.c3
Normal file
4
test/test_suite/constants/recursive_constant.c3
Normal file
@@ -0,0 +1,4 @@
|
||||
fn int main()
|
||||
{
|
||||
const A = x'1234' +++ (ichar[A]); // #error: The evaluation of this expression is recursive.
|
||||
}
|
||||
Reference in New Issue
Block a user