nctref/tests/scoping.nct

6 lines
141 B
Plaintext

u8 a = 5;
if(a != 0) {
u8 a = 10; /* Should not cause scoping errors. */
}
u8 b = 15; /* `a` in the if statement scope should be free'd. */