cbc/test/block.cb

27 lines
374 B
Plaintext
Raw Normal View History

import stdio;
int
main(int argc, char **argv)
{
int *addr1;
int *addr2;
int i = 1;
printf("%d", i);
{
int i = 2;
printf(";%d", i);
addr1 = &i;
}
{
int i = 3;
printf(";%d", i);
addr2 = &i;
}
printf(";%d", i);
printf(";%s", addr1 == addr2 ? "OK" : "NG");
puts("");
return 0;
}