bolt/deps/llvm-18.1.8/lldb/test/API/functionalities/watchpoint/large-watchpoint/main.c

17 lines
333 B
C
Raw Normal View History

2025-02-14 19:21:04 +01:00
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main() {
const int count = 65535;
int *array = (int*) malloc(sizeof (int) * count);
memset (array, 0, count * sizeof (int));
puts ("break here");
for (int i = 0; i < count - 16; i += 16)
array[i] += 10;
puts ("done, exiting.");
}