Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Analysis / html_diagnostics / td-hotfix.c
blob9daed00800b77049c7a6733b9066db25243b32d0
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 foo(void) {
10 int a;
11 bar(a); // expected-warning{{1st function call argument is an uninitialized value}}
14 // CHECK-LABEL: <div id="EndPath" class="msg msgEvent" style="margin-left:3ex">
15 // CHECK-SAME: <table class="msgT">
16 // CHECK-SAME: <tr>
17 // CHECK-SAME: <td valign="top">
18 // CHECK-SAME: <div class="PathIndex PathIndexEvent">2</div>
19 // CHECK-SAME: </td>
20 // CHECK-SAME: <td>
21 // CHECK-SAME: <div class="PathNav">
22 // CHECK-SAME: <a href="#Path1" title="Previous event (1)">&#x2190;</a>
23 // CHECK-SAME: </div>
24 // CHECK-SAME: </td>
25 // CHECK-NOT: </td>
26 // CHECK-SAME: <td>
27 // CHECK-SAME: 1st function call argument is an uninitialized value
28 // CHECK-SAME: </td>
29 // CHECK-SAME: </tr>
30 // CHECK-SAME: </table>
31 // CHECK-SAME: </div>