1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -fcf-protection" } */
       3  /* { dg-final { scan-assembler-times {\mendbr} 2 } } */
       4  
       5  extern int x;
       6  
       7   __attribute__ ((visibility ("hidden")))
       8  void
       9  test (int i)
      10  {
      11    x = i;
      12  }
      13  
      14  void
      15  bar (int i)
      16  {
      17    test (i);
      18  }