1 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.15.0 -emit-pch -o %t %s 2 // RUN: %clang_analyze_cc1 -triple x86_64-apple-macosx10.15.0 -include-pch %t \ 3 // RUN: -analyzer-checker=core,apiModeling -verify %s 4 // 5 // RUN: %clang_cc1 -emit-pch -o %t %s 6 // RUN: %clang_analyze_cc1 -include-pch %t \ 7 // RUN: -analyzer-checker=core,apiModeling -verify %s 8 9 // expected-no-diagnostics 10 11 #ifndef HEADER 12 #define HEADER 13 // Pre-compiled header 14 15 int foo(); 16 17 // Literal data for this macro value will be null 18 #define EOF -1 19 20 #else 21 // Source file 22 23 int test() { 24 // we need a function call here to initiate erroneous routine 25 return foo(); // no-crash 26 } 27 28 #endif 29