1 // RUN: rm -rf %t 2 // RUN: %clang_cc1 -analyze -analyzer-output=html -analyzer-checker=core -o %t %s 3 // RUN: find %t -name "*.html" -exec cat "{}" ";" | FileCheck %s 4 5 // REQUIRES: staticanalyzer 6 7 // CHECK: <h3>Annotated Source Code</h3> 8 9 // Make sure it's generated as multi-file HTML output 10 // CHECK: <h4 class=FileName>{{.*}}html-multifile-diagnostics.c</h4> 11 // CHECK: <h4 class=FileName>{{.*}}html-multifile-diagnostics.h</h4> 12 13 // Without tweaking expr, the expr would hit to the line below 14 // emitted to the output as comment. 15 // CHECK: {{[D]ereference of null pointer}} 16 17 #include "html-multifile-diagnostics.h" 18 19 void f0() { 20 f1((int*)0); 21 } 22