1 /* { dg-do compile } */ 2 /* { dg-options "-O2" } */ 3 4 struct t { void (*func)(void*); }; 5 void test_func(struct t* a) __attribute__((optimize("O0"))); test_func(struct t * a)6 void test_func(struct t* a) 7 { 8 a->func(0); 9 } 10