PR target/83368
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / cet-notrack-6b.c
blob1c47c9f7d201c1d3557e50379d4079c73f9f5f13
1 /* { dg-do compile } */
2 /* { dg-options "-O0 -fcf-protection -mcet" } */
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]+" } } */
6 /* { dg-final { scan-assembler-times "notrack call\[ \t]+" 1 } } */
8 int foo (int arg);
10 int func (int arg)
12 int (*fptrl) (int a) __attribute__ ((nocf_check)) = foo; /* { dg-warning "incompatible pointer type" } */
14 return (*fptrl)(arg); /* notrack call. */