Skip to content

Commit 7989831

Browse files
committed
Added regression test for the fixed bug.
1 parent 00b4af2 commit 7989831

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#include <assert.h>
2+
#include <malloc.h>
3+
4+
struct rrr
5+
{
6+
char j;
7+
int y;
8+
};
9+
10+
void foo(struct rrr *r)
11+
{
12+
r->j = 1;
13+
}
14+
15+
int main(int argc, char* argv[])
16+
{
17+
struct rrr* r=malloc(sizeof(struct rrr));
18+
foo(r);
19+
if (r->j==1)
20+
{
21+
assert(1);
22+
return 0;
23+
}
24+
return -1;
25+
}
26+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CORE
2+
main.c
3+
--full-slice --add-library
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$

0 commit comments

Comments
 (0)