2012-03-02 09:27:31 +08:00
|
|
|
// RUN: mkdir -p %t.dir
|
2017-03-04 02:02:02 +08:00
|
|
|
// RUN: %clang_analyze_cc1 -analyzer-output=html -analyzer-checker=core -o %t.dir %s
|
2017-08-04 02:12:22 +08:00
|
|
|
// RUN: ls %t.dir | grep report
|
2012-03-02 09:27:31 +08:00
|
|
|
// RUN: rm -fR %t.dir
|
|
|
|
|
2017-08-04 02:12:22 +08:00
|
|
|
// This tests that we emit HTML diagnostics for reports that cross file boundaries.
|
2012-03-02 09:27:31 +08:00
|
|
|
|
|
|
|
#include "html-diags-multifile.h"
|
|
|
|
|
|
|
|
#define CALL_HAS_BUG(q) has_bug(q)
|
|
|
|
|
|
|
|
void test_call_macro() {
|
|
|
|
CALL_HAS_BUG(0);
|
|
|
|
}
|
|
|
|
|