nctref/tests/scoping.nct

6 lines
141 B
Plaintext
Raw Normal View History

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