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

15 lines
311 B
Plaintext

fn void test1()
{
int a = (i ? 1 : 1); // #error: 'i' could not be found, did you spell it right
}
fn void test2()
{
int a = (1 ? i : 2); // #error: 'i' could not be found, did you spell it right
}
fn void test3()
{
int a = (1 ? 2 : i); // #error: 'i' could not be found, did you spell it right
}