comparison gcc/testsuite/gcc.dg/setjmp-5.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
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 }