Skip to content

Commit 32a410e

Browse files
committed
Add additional regression tests for the memory analyzer
1 parent 9c2d9d3 commit 32a410e

File tree

36 files changed

+406
-0
lines changed

36 files changed

+406
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
void checkpoint()
2+
{
3+
}
4+
5+
int array[] = {1, 2, 3};
6+
7+
int main()
8+
{
9+
array[1] = 4;
10+
11+
checkpoint();
12+
13+
return 0;
14+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CORE
2+
main.exe
3+
--breakpoint checkpoint --symbols array
4+
array = \{ 1, 4, 3 \};
5+
^EXIT=0$
6+
^SIGNAL=0$
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
void checkpoint()
2+
{
3+
}
4+
5+
int x = 3;
6+
int *p = &x;
7+
8+
struct S
9+
{
10+
int c1;
11+
int c2;
12+
};
13+
14+
struct S st = {.c1 = 1, .c2 = 2};
15+
16+
int a[] = {1, 2, 3};
17+
18+
int main()
19+
{
20+
checkpoint();
21+
22+
return 0;
23+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CORE
2+
main.exe
3+
--breakpoint checkpoint --symbols x,p,st,a --symtab-snapshot --json-ui
4+
^EXIT=0$
5+
^SIGNAL=0$
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
void checkpoint()
2+
{
3+
}
4+
5+
int x = 3;
6+
int *p = &x;
7+
8+
int main()
9+
{
10+
checkpoint();
11+
12+
return 0;
13+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
main.exe
3+
--breakpoint checkpoint --symbols x,p
4+
x = 3;
5+
p = &x;
6+
^EXIT=0$
7+
^SIGNAL=0$
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
void checkpoint()
2+
{
3+
}
4+
5+
int x = 3;
6+
int *p = &x;
7+
8+
int main()
9+
{
10+
checkpoint();
11+
12+
return 0;
13+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
CORE
2+
main.exe
3+
--breakpoint checkpoint --symbols p,x
4+
^EXIT=0$
5+
^SIGNAL=0$
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
void checkpoint()
2+
{
3+
}
4+
5+
int x = 3;
6+
void *p = (void *)&x;
7+
8+
int main()
9+
{
10+
checkpoint();
11+
12+
return 0;
13+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
main.exe
3+
--breakpoint checkpoint --symbols x,p
4+
x = 3;
5+
p = &x;
6+
^EXIT=0$
7+
^SIGNAL=0$

0 commit comments

Comments
 (0)