1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -fcf-protection" } */
       3  /* { dg-final { scan-assembler-times {\mendbr} 2 } } */
       4  
       5  static void
       6  test (void)
       7  {
       8  }
       9  
      10  void *
      11  bar (void)
      12  {
      13    return test;
      14  }