i80: negative case labels break switch statement
svofski opened this issue · 0 comments
svofski commented
This is probably a grey area, but it's different to gcc.
#include <stdio.h>
int test_switch(int value)
{
switch (value) {
case -1:
case 1:
return 1;
}
return 0;
}
int main()
{
printf("-1 --> %d\n", test_switch(-1)); // gcc prints 1, ack prints 1
printf("1 --> %d\n", test_switch(1)); // gcc prints 1, ack prints 0
return 0;
}