(no title)
_sbrk
|
10 months ago
gcc will not let you actually define a negatively-sized array. Check it with some simple code -- I did. Even with -Wall -Wextra -O1 -std=c11 -Wpedantic, if I actually try to create foo[-1], on the stack or in BSS, I get the proper error:
error: size of array 'foo' is negative
No comments yet.