(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
i386/
cet-notrack-6a.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -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-times "\t(?:call|jmp)\[ \t]+.*foo" 1 } } */
       6  /* { dg-final { scan-assembler-not "notrack call\[ \t]+" } } */
       7  
       8  int foo (int arg);
       9  
      10  int func (int arg)
      11  {
      12    int (*fptrl) (int a) __attribute__ ((nocf_check)) = foo; /* { dg-warning "incompatible pointer type" } */
      13  
      14    return (*fptrl)(arg);
      15  }