]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/i386/chkp-strchr.c
01ee619dfd91dfd318ff3599125f861a40788fe2
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / i386 / chkp-strchr.c
1 /* { dg-do compile { target { ! x32 } } } */
2 /* { dg-options "-fcheck-pointer-bounds -mmpx -O2" } */
3
4 #include "string.h"
5
6 static char *
7 test1 (char *str)
8 {
9 return strrchr (str, '_');
10 }
11
12 char *
13 test2 ()
14 {
15 return test1 ("test_string");
16 }