repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
pr63995-2.c
blob
7c22e625a8d4e1f83ce4c34603c834db8b7e8700
1
/* { dg-do compile } */
2
/* { dg-require-effective-target mpx } */
3
/* { dg-options "-O2 -g -fcheck-pointer-bounds -mmpx -fcompare-debug" } */
4
5
struct
ts
6
{
7
int
field
;
8
};
9
10
extern
void
test1
();
11
extern
void
test2
(
struct
ts
*);
12
13
static void
14
init
(
struct
ts
*
c
)
15
{
16
c
->
field
= -
1
;
17
}
18
19
struct
ts
20
test3
(
const struct
ts
*
other
)
21
{
22
struct
ts r
;
23
if
(
other
->
field
!=
0
)
24
test1
();
25
init
(&
r
);
26
test2
(&
r
);
27
return
r
;
28
}