2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / cet-notrack-5a.c
blobd23968e58d1ccee3a413690d188061702b4ac850
1 /* { dg-do compile } */
2 /* { dg-options "-O -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 (*fptr) (int) __attribute__ ((nocf_check));
10 int
11 foo (int arg)
13 int a;
14 a = (*fptr) (arg); /* notrack call. */
15 return arg+a;