Skip to content

Commit 1288227

Browse files
author
Daniel Kroening
committed
added test for undeclared functions
Follow up from #4211. The type of function symbols must get fixed once the function signature is known.
1 parent 746504e commit 1288227

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// There is no #include <stdlib.h> here, deliberately,
2+
// to trigger automatic generation of a signature below.
3+
4+
int main(void)
5+
{
6+
malloc(4);
7+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include <stdlib.h>
2+
3+
int f()
4+
{
5+
malloc(4);
6+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
KNOWNBUG
2+
fileA.c
3+
fileB.c --validate-goto-model
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
^CONVERSION ERROR$

0 commit comments

Comments
 (0)