Skip to content

Commit

Permalink
Added regression test for the fixed bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-trtik committed Oct 13, 2017
1 parent 00b4af2 commit 7989831
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
26 changes: 26 additions & 0 deletions regression/goto-instrument/slice24/main.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#include <assert.h>
#include <malloc.h>

struct rrr
{
char j;
int y;
};

void foo(struct rrr *r)
{
r->j = 1;
}

int main(int argc, char* argv[])
{
struct rrr* r=malloc(sizeof(struct rrr));
foo(r);
if (r->j==1)
{
assert(1);
return 0;
}
return -1;
}

6 changes: 6 additions & 0 deletions regression/goto-instrument/slice24/test.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CORE
main.c
--full-slice --add-library
^EXIT=0$
^SIGNAL=0$
^VERIFICATION SUCCESSFUL$

0 comments on commit 7989831

Please sign in to comment.