Files
c3c/test/unit7/regression/subscripting.c3
2025-02-24 01:05:45 +01:00

15 lines
211 B
Plaintext

module subscripting_tests @test;
fn void subscript_ct()
{
$if int.nameof[0] == 'i':
assert(true);
$else
assert(false);
$endif
$if int.nameof[^1] == 't':
assert(true);
$else
assert(false);
$endif
}