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