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 6 7 void bar(int); 8 9 void foo(void) { 10 int a; 11 for (unsigned i = 0; i < 3; ++i) 12 if (i) 13 bar(a); // expected-warning{{1st function call argument is an uninitialized value}} 14 } 15 16 // CHECK: <span class='variable'>i 17 // CHECK-SAME: <table class='variable_popup'><tbody><tr> 18 // CHECK-SAME: <td valign='top'> 19 // CHECK-SAME: <div class='PathIndex PathIndexPopUp'>2.1</div> 20 // CHECK-SAME: </td> 21 // CHECK-SAME: <td>'i' is 0</td> 22 // CHECK-SAME: </tr> 23 // CHECK-SAME: <tr> 24 // CHECK-SAME: <td valign='top'> 25 // CHECK-SAME: <div class='PathIndex PathIndexPopUp'>4.1</div> 26 // CHECK-SAME: </td> 27 // CHECK-SAME: <td>'i' is 1</td> 28 // CHECK-SAME: </tr></tbody></table> 29 // CHECK-SAME: </span> 30