Use -fcf-protection=return in cet-intrin-4.c
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / chkp-strchr.c
blob01ee619dfd91dfd318ff3599125f861a40788fe2
1 /* { dg-do compile { target { ! x32 } } } */
2 /* { dg-options "-fcheck-pointer-bounds -mmpx -O2" } */
4 #include "string.h"
6 static char *
7 test1 (char *str)
9 return strrchr (str, '_');
12 char *
13 test2 ()
15 return test1 ("test_string");