• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 struct s {
2 	__INT32_TYPE__ x;
3 	__INT16_TYPE__ y;
4 	unsigned char f[];
5 };
6 
foo(struct s * s)7 static int foo(struct s *s)
8 {
9 	return (sizeof(*s) << 16) | __builtin_offsetof(typeof(*s), f);
10 }
11 
12 /*
13  * check-name: flex-array-align
14  * check-command: test-linearize -Wno-flexible-array-sizeof $file
15  *
16  * check-output-ignore
17  * check-output-contains: ret\\..*\\$0x80006
18  */
19