extra: small fix for when the database is disabled but we have inline info
[smatch.git] / validation / sm_equiv2.c
blobd66da29ef8ec65f0b1f9c220b07eab550ebaf240
1 #include "check_debug.h"
3 int *something();
5 int red;
6 int blue;
7 int x;
8 int func(void)
10 red = 0;
12 if (x) {
13 red = 5;
15 blue = red;
17 if (x) {
18 __smatch_value("red");
19 __smatch_value("blue");
21 __smatch_value("red");
22 __smatch_value("blue");
23 return 0;
26 * check-name: smatch equivalent variables #2 (implications)
27 * check-command: smatch -I.. sm_equiv2.c
29 * check-output-start
30 sm_equiv2.c:18 func() red = 5
31 sm_equiv2.c:19 func() blue = 5
32 sm_equiv2.c:21 func() red = 0,5
33 sm_equiv2.c:22 func() blue = 0,5
34 * check-output-end