Fix: Null pointer dereference in ldlex.l
[binutils-gdb.git] / gdb / testsuite / gdb.base / sum.c
blob3e27fa1a41a19eba2d960078710ea482029da9a6
1 /* This is a sample program for the HP/DDE debugger. */
2 #include <stdio.h>
4 int sum(int *list, int low, int high)
6 int i = 0, s = 0; /* stop-in-sum */
7 for (i = low; i <= high; i++)
8 s += list[i];
9 return(s);