1 /* PR48985 */ 2 /* { dg-do run } */ 3 /* { dg-options "-std=gnu89" } */ 4 /* { dg-skip-if "packed attribute missing for struct s" { "epiphany-*-*" } } */ 5 6 extern void abort (void); 7 8 struct s { 9 int i; 10 char c[]; 11 } s = { 1, "01234" }; 12 f(void)13__SIZE_TYPE__ f (void) { return __builtin_object_size (&s.c, 0); } 14 15 int main()16main() 17 { 18 if (f() != sizeof ("01234")) 19 abort (); 20 21 return 0; 22 } 23