Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Analysis / html_diagnostics / variable-popups-simple.c
blob57ef63c216fa99bdb1c745141d4f94796e9e322c
1 // RUN: rm -fR %t
2 // RUN: mkdir %t
3 // RUN: %clang_analyze_cc1 -analyzer-checker=core \
4 // RUN: -analyzer-output=html -o %t -verify %s
5 // RUN: cat %t/report-*.html | FileCheck %s
7 void bar(int);
9 void foo2(void) {
10 int a;
11 int b = 1;
12 if (b)
13 bar(a); // expected-warning{{1st function call argument is an uninitialized value}}
16 // CHECK: <span class='variable'>b
17 // CHECK-SAME: <table class='variable_popup'><tbody><tr>
18 // CHECK-SAME: <td valign='top'>
19 // CHECK-SAME: <div class='PathIndex PathIndexPopUp'>1.1</div>
20 // CHECK-SAME: </td>
21 // CHECK-SAME: <td>'b' is 1</td>
22 // CHECK-SAME: </tr></tbody></table>
23 // CHECK-SAME: </span>