diff options
Diffstat (limited to 'test/Analysis/diagnostics/diag-cross-file-boundaries.c')
| -rw-r--r-- | test/Analysis/diagnostics/diag-cross-file-boundaries.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Analysis/diagnostics/diag-cross-file-boundaries.c b/test/Analysis/diagnostics/diag-cross-file-boundaries.c new file mode 100644 index 000000000000..270163e85607 --- /dev/null +++ b/test/Analysis/diagnostics/diag-cross-file-boundaries.c @@ -0,0 +1,12 @@ +// RUN: %clang_cc1 -analyze -analyzer-checker=core -verify %s +// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-output=html -o PR12421.html %s 2>&1 | FileCheck %s + +// Test for PR12421 +#include "diag-cross-file-boundaries.h" + +int main(){ + f(); + return 0; +} + +// CHECK: warning: Path diagnostic report is not generated. |
