blob: 89b429e7f5555ce418a902101431beec46d5243a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* { dg-do compile { target { ! x32 } } } */
/* { dg-options "-O2 -g -fcheck-pointer-bounds -mmpx -fcompare-debug" } */
struct ts
{
int field;
};
extern void test1 ();
extern void test2 (struct ts *);
static void
init (struct ts *c)
{
c->field = -1;
}
struct ts
test3 (const struct ts *other)
{
struct ts r;
if (other->field != 0)
test1 ();
init (&r);
test2 (&r);
return r;
}
|