1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,unix -analyzer-output=plist-multi-file -analyzer-config report-in-main-source-file=true %s -o %t.plist
2 // RUN: %normalize_plist <%t.plist | diff -ub %S/Inputs/expected-plists/report-issues-within-main-file.cpp.plist -
3 #include "Inputs/include/report-issues-within-main-file.h"
5 void mainPlusHeader() {
6 auto_ptr
<int> B (new int[5]);
12 cause_div_by_zero_in_header(j
);
15 void mainPlusMainPlusHeader() {
22 void causeDivByZeroInMain(int in
) {
30 causeDivByZeroInMain(i
);
34 void causeDivByZeroInMain2(int in
) {
40 void mainPlustHeaderCallAndReturnPlusMain() {
44 causeDivByZeroInMain2(i
);
51 CALLS_BUGGY_FUNCTION2
;
58 CALLS_BUGGY_FUNCTION3
;
62 void callCallInMacro3() {
66 void callInMacroArg() {
69 TAKE_CALL_AS_ARG(cause_div_by_zero_in_header4(5));