Skip to content

Commit c8db083

Browse files
committed
fixup
1 parent 8db007b commit c8db083

File tree

1 file changed

+9
-9
lines changed
  • regression/cbmc/pointer-to-struct-with-flexible-array-member-as-parameter-to-entry-point

1 file changed

+9
-9
lines changed
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#include <assert.h>
22
#include <stdlib.h>
3+
34
typedef struct ST ST;
4-
typedef struct ST {
5-
int id;
6-
ST *c[];
5+
typedef struct ST
6+
{
7+
// int id;
8+
// ST *c[];
9+
int c[];
710
} ST;
811

9-
void testFunc(ST ** t) {
10-
*t = malloc(sizeof(ST));
11-
assert(sizeof(ST));
12-
}
13-
14-
int main() {
12+
void testFunc(ST **t)
13+
{
14+
*t=malloc(sizeof(ST));
1515
}

0 commit comments

Comments
 (0)