]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/i386/pr65183.c
4d62267fc0df899c39ebc8e285a74ae71cc3fd71
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / i386 / pr65183.c
1 /* { dg-do compile { target { ! x32 } } } */
2 /* { dg-options "-O -fcheck-pointer-bounds -fchkp-use-nochk-string-functions -mmpx" } */
3
4 extern void bar(void *);
5 extern void baz(void);
6
7 static int lc[32];
8
9 void foobar(void *c)
10 {
11 bar(&c);
12 __builtin_memcpy (lc, c, lc[0]);
13 }
14
15 void foo ()
16 {
17 baz ();
18 foobar(0);
19 }