Files
UnrealEngine/Engine/Source/ThirdParty/FontConfig/fontconfig-2.13.94/meson-cc-tests/flexible-array-member-test.c
2025-05-18 13:04:45 +08:00

15 lines
281 B
C

#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>
struct s { int n; double d[]; };
int main(void)
{
int m = getchar ();
struct s *p = malloc (offsetof (struct s, d)
+ m * sizeof (double));
p->d[0] = 0.0;
return p->d != (double *) NULL;
}