CCTLib
Calling-context and data-object attribution library for Intel Pin
testArray.c
Go to the documentation of this file.
1 /* This test is for arrays */
2 
3 #include <stdio.h>
4 
5 int a[1000];
6 
7 void array(){
8 
9  int i,j;
10  for(i=0;i<1000;++i)
11  a[i] = 10;
12  int b;
13  for(i=0;i<3;++i)
14  b = a[2];
15  printf("b is %d\n",b);
16  printf("a[0] at %p\n",&a[0]);
17  printf("a[1] at %p\n",&a[1]);
18 }
19 
20 void main(){
21  array();
22 }
void array()
Definition: testArray.c:7
void main()
Definition: testArray.c:20
int a[1000]
Definition: testArray.c:5