tccgen.c: Bug fix for 992cbda and 3ff77a1: set nocode_wanted.

tests/tests2/78_vla_label.*: Add test.
This commit is contained in:
Edmund Grimley Evans
2015-11-21 23:58:58 +00:00
parent cfef9ac3f5
commit 737f984213
3 changed files with 39 additions and 8 deletions

View File

@ -27,10 +27,19 @@ void f2(void)
}
}
void f3(void)
{
printf("%d\n", 0 ? printf("x1\n") : 11);
printf("%d\n", 1 ? 12 : printf("x2\n"));
printf("%d\n", 0 && printf("x3\n"));
printf("%d\n", 1 || printf("x4\n"));
}
int main()
{
f1(2);
f2();
f3();
return 0;
}

View File

@ -1,2 +1,6 @@
boom!
boom!
11
12
0
1