1  /* { dg-do compile } */
       2  /* { dg-require-weak "" } */
       3  /* { dg-options "-O2 -fdump-tree-einline-all" } */
       4  int w;
       5  int bar (void) __attribute__ ((weak));
       6  int bar (){
       7    w++;
       8  }
       9  void foo()
      10  {
      11    bar();
      12  }
      13  /* { dg-final { scan-tree-dump-times "function body can be overwritten at link time" 1 "einline" } } */