Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / cet-notrack-2b.c
blob8b4952d40bb339b240b1e116e2acc359ca7f1f5d
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 "notrack jmp\[ \t]+" 1 } } */
7 void
8 bar (void (*foo) (void))
10 void (*func) (void) __attribute__((nocf_check)) = foo; /* { dg-warning "incompatible pointer type" } */
11 func ();