Skip to content

Commit

Permalink
Do not use non-trivial system headers with --32
Browse files Browse the repository at this point in the history
Function declarations in system headers would cause type conflicts when running
on 64-bit systems. Just add a proper declaration of malloc in place instead.
  • Loading branch information
tautschnig committed Jan 30, 2018
1 parent fdb2ebc commit b2c4188
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion regression/cbmc/Pointer_byte_extract5/main.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <stdlib.h>
void *malloc(__CPROVER_size_t);

typedef union
{
Expand Down
2 changes: 1 addition & 1 deletion regression/cbmc/Pointer_byte_extract8/main.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <stdlib.h>
void *malloc(__CPROVER_size_t);

typedef union
{
Expand Down
3 changes: 2 additions & 1 deletion regression/cbmc/address_space_size_limit2/test.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <stdlib.h>
#include <assert.h>

void *malloc(__CPROVER_size_t);

int main(int argc, char** argv)
{
char* c=(char*)malloc(10);
Expand Down

0 comments on commit b2c4188

Please sign in to comment.