(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
i386/
cet-notrack-5a.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O -fcf-protection" } */
       3  /* { dg-final { scan-assembler-times "endbr32" 1 { target ia32 } } } */
       4  /* { dg-final { scan-assembler-times "endbr64" 1 { target { ! ia32 } } } } */
       5  /* { dg-final { scan-assembler-not "\tcall\[ \t]+" { target { ! ia32 } || { ! *-*-darwin* } } } } */
       6  /* { dg-final { scan-assembler-times "\tcall\[ \t]+" 1 { target { ia32 && *-*-darwin* } } } } */
       7  /* { dg-final { scan-assembler-times "notrack call\[ \t]+" 1 } } */
       8  
       9  int (*fptr) (int) __attribute__ ((nocf_check));
      10  
      11  int
      12  foo (int arg)
      13  {
      14    int a;
      15    a = (*fptr) (arg); /* notrack call.  */
      16    return arg+a;
      17  }