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
2018-04-09 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
setjmp-5.c
blob
584762915deeaf7b81a6468b54c72cc866a630a0
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -Wall" } */
3
/* { dg-require-effective-target indirect_jumps } */
4
5
#include <setjmp.h>
6
7
void
bar
(
int
);
8
9
jmp_buf
buf
;
10
int
v
;
11
12
void
13
foo
(
void
)
14
{
15
int
i
;
16
bar
(
0
);
17
bar
(
1
);
18
i
=
5
;
19
int
j
=
setjmp
(
buf
);
20
if
(
j
==
0
)
21
bar
(
2
);
22
v
=
i
;
/* { dg-bogus "may be used uninitialized in this function" } */
23
}