xref: /llvm-project/clang/test/Analysis/html-diags-multifile.c (revision 1ea584377e7897f7df5302ed9cd378d17be14fbf)
1 // RUN: mkdir -p %t.dir
2 // RUN: %clang_analyze_cc1 -analyzer-output=html -analyzer-checker=core -o %t.dir %s
3 // RUN: ls %t.dir | grep report
4 // RUN: rm -fR %t.dir
5 
6 // This tests that we emit HTML diagnostics for reports that cross file boundaries.
7 
8 #include "html-diags-multifile.h"
9 
10 #define CALL_HAS_BUG(q) has_bug(q)
11 
test_call_macro(void)12 void test_call_macro(void) {
13   CALL_HAS_BUG(0);
14 }
15 
16