1a4e54154Smrg#include <stdlib.h>
2a4e54154Smrg#include <stdio.h>
3a4e54154Smrg#include <stddef.h>
4a4e54154Smrg
5a4e54154Smrgstruct s { int n; double d[]; };
6a4e54154Smrg
7a4e54154Smrgint main(void)
8a4e54154Smrg{
9a4e54154Smrg  int m = getchar ();
10a4e54154Smrg  struct s *p = malloc (offsetof (struct s, d)
11a4e54154Smrg                        + m * sizeof (double));
12a4e54154Smrg  p->d[0] = 0.0;
13a4e54154Smrg  return p->d != (double *) NULL;
14a4e54154Smrg}
15