Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/analyzer/pr94754.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
145:1830386684a0 | 152:2b5abeee2509 |
---|---|
1 [[gnu::nonnull]] | |
2 static | |
3 void init_x(int cond, int **x, int *y) | |
4 { | |
5 if (!cond) | |
6 return; | |
7 *x = y; | |
8 } | |
9 | |
10 int foo(int cond) | |
11 { | |
12 int *x; | |
13 int y = 7; | |
14 | |
15 if (cond < 2) | |
16 return -1; | |
17 init_x(cond, &x, &y); | |
18 | |
19 return *x; | |
20 } |