/* { dg-do link } *//* { dg-options "-O" } *//* When optimized we expect the call to foo () in bar to be inlined and the call to link_error optimized away. */externvoidlink_error(void);inlineint__attribute__((always_inline))foo(void){return0;}intmain(){int(*fn)(void)=foo;if(fn())link_error();return0;}