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