brintos

brintos / llvm-project-archived public Read only

0
0
Text · 685 B · 4c8c66b Raw
36 lines · c
1#include <stdint.h>2#include <stdio.h>3#include <stdlib.h>4#include <string.h>5 6struct obj {7  uint32_t one;8  uint32_t two;9  uint32_t three;10  uint32_t four;11};12 13int main() {14  const int count = 16776960;15  uint8_t *array = (uint8_t *)malloc(count);16  memset(array, 0, count);17  struct obj variable;18  variable.one = variable.two = variable.three = variable.four = 0;19 20  puts("break here");21 22  for (int i = 0; i < count; i++)23    array[i]++;24 25  puts("done iterating");26 27  variable.one = 1;28  variable.two = 2;29  variable.three = 3;30  variable.four = 4;31 32  printf("variable value is %d\n",33         variable.one + variable.two + variable.three + variable.four);34  puts("exiting.");35}36