用hello例程试了一下:
int main (void)
{
unsigned char array1[10]={0};
unsigned char array2[256]={0};
array2[-1]=1;
array2[-2]=2;
while(1)
;
}
编译的时候就有两个警告:
Hello.c(64): warning: C3488E: write to variable 'array2' with offset out of bounds
Hello.c(64): warning: C3488E: write to variable 'array2' with offset out of bounds