test related to issue #1222

This commit is contained in:
mrdudz 2020-09-24 12:23:18 +02:00
parent fb8b45e479
commit 97a1093ee0
1 changed files with 12 additions and 0 deletions

12
test/val/bug1222.c Normal file
View File

@ -0,0 +1,12 @@
/* bug #1222 - 'sizeof' issues */
#include <stdlib.h>
int a[1];
int b[sizeof ++a[42]]; /* should work as '++a[42]' is actually unevaluated */
int main(void)
{
return EXIT_SUCCESS;
}