xref: /llvm-project/lldb/test/API/functionalities/watchpoint/large-watchpoint/main.c (revision 2e16e41b28b1b1e027d0303e1a37ccbded96a46f)
1 #include <stdint.h>
2 #include <stdio.h>
3 #include <string.h>
4 #include <stdlib.h>
main()5 int main() {
6   const int count = 65535;
7   int *array = (int*) malloc(sizeof (int) * count);
8   memset (array, 0, count * sizeof (int));
9 
10   puts ("break here");
11 
12   for (int i = 0; i < count - 16; i += 16)
13     array[i] += 10;
14 
15   puts ("done, exiting.");
16 }
17