param_key: fix container of when no struct member is referenced
[smatch.git] / validation / var-undef-partial.c
blobf1a07bea71c3915f77bea5fee2ef47866923fdd0
1 int foo(int a, int b)
3 int var = 0;
4 int r;
6 if (a)
7 var = 1;
8 if (b)
9 r = var;
11 return r; // undef if !b
15 * check-name: variable partially undefined
16 * check-description: trigger a bug in symbol/memop simplification
17 * check-description: sparse-llvm is used here as semantic checker of sparse's IR
18 * check-command: sparse-llvm -Wno-decl $file
19 * check-output-ignore