summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/mpx/pr66134.c
blob: 3889674ed5fcfc9885b416a69bbe6d25394de880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-options "-O2 -fcheck-pointer-bounds -mmpx -fno-tree-ccp" } */

extern int vfork (void) __attribute__ ((__nothrow__ , __leaf__));
void test1 (void);
void test2 (void);
void test3 (int *);

void test (int *p)
{
 test1 ();
 p++;
 test2 ();
 p++;
 vfork ();
 test3 (p);
}