nctref/tests/scoping.nct

5 lines
135 B
Plaintext
Raw Normal View History

2023-08-27 19:48:06 +03:00
u8 a = 5;
if(a) {
u8 a = 10; /* Should not cause scoping errors. */
}
u8 b = 15; /* `a` in the if statement scope should be free'd. */