1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| //===-- main.c --------------------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#include <stdio.h>
#include <stdint.h>
uint64_t pad0 = 0;
uint8_t byteArray[4] = {0};
uint64_t pad1 = 0;
int main(int argc, char** argv) {
int i;
for (i = 0; i < 4; i++)
{
printf("About to write byteArray[%d] ...\n", i); // About to write byteArray
pad0++;
byteArray[i] = 7;
pad1++;
}
return 0;
}
|