Files
ftmemsim-valgrind/none/tests/solaris/stack-overflow.c
Ivo Raisr 68dd2dd0b5 Fix compiler warning about using uninitialized variable 'arr'.
Reported by gcc 5.3. The test outcome remains unchanged.
n-i-bz


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15798
2016-02-18 18:10:05 +00:00

6 lines
244 B
C

/* There should be a user message about the overflow.
Written in a single line so there is no confusion on what line
the overflow occurs. */
int main(int argc, char *argv[]) { volatile int arr[1000] = {0}; return main(arr[argc%2], 0); }