[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Coverage / html-multifile-diagnostics.c
blob8389dfa8ce5a5667cb5ea3201819e96f8d632f9b
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
5 // REQUIRES: staticanalyzer
7 // CHECK: <!-- FILENAME html-multifile-diagnostics.h -->
9 // CHECK: <h3>Annotated Source Code</h3>
11 // Make sure it's generated as multi-file HTML output
12 // CHECK: <h4 class=FileName>{{.*}}html-multifile-diagnostics.c</h4>
13 // CHECK: <h4 class=FileName>{{.*}}html-multifile-diagnostics.h</h4>
15 // Without tweaking expr, the expr would hit to the line below
16 // emitted to the output as comment.
17 // CHECK: {{[D]ereference of null pointer}}
19 #include "html-multifile-diagnostics.h"
21 void f0(void) {
22 f1((int*)0);