zero initialization for incomplete structs and arrays

git-svn-id: svn+ssh://svn.cprover.org/srv/svn/cbmc/trunk@2132 6afb6bc1-c8e4-404c-8f48-9ae832c5b171
This commit is contained in:
kroening 2013-02-11 14:50:40 +00:00
parent fbed089789
commit 92f32f109e
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,21 @@
// will remain incomplete
extern struct foo x;
// never gets a body
extern void foo(struct foo *arg);
// but called anyway
extern inline void bar()
{
foo(&x);
}
// similar with an incomplete array
extern char some_array[];
// similar with a union
extern union moo y;
int main()
{
}

View File

@ -0,0 +1,8 @@
CORE
main.c
^SIGNAL=0$
^EXIT=0$
--
^warning: ignoring
^CONVERSION ERROR$