Skip to content

Commit 72df67f

Browse files
author
Daniel Kroening
committed
test for issue #3653
1 parent 47da701 commit 72df67f

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include <assert.h>
2+
3+
struct f { int w; int x[]; };
4+
5+
struct f f = { 4, { 0, 1, 2, 3 } };
6+
7+
int main()
8+
{
9+
assert(sizeof(f)==sizeof(int));
10+
assert(f.x[1]==1);
11+
return 0;
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
KNOWNBUG
2+
main.c
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
8+
^warning: ignoring
9+
--
10+
Based on issue #3653.

0 commit comments

Comments
 (0)