diff --git a/src/test/kc/inner-index-problem.c b/src/test/kc/inner-index-problem.c new file mode 100644 index 000000000..589ebe6de --- /dev/null +++ b/src/test/kc/inner-index-problem.c @@ -0,0 +1,9 @@ +// Demonstrates a problem with inner indexes into arrays where the elemt size>1 + +unsigned int v[5]; +unsigned int x[5]; + +void main() { + for(char i=0;i<5;i++) + x[i] += ( v[i] += 5 ); +} \ No newline at end of file