Mercurial > hg > CbC > CbC_llvm
view clang/test/Analysis/pch_crash.cpp @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 79ff65ed7e25 |
children |
line wrap: on
line source
// RUN: %clang_cc1 -triple x86_64-apple-macosx10.15.0 -emit-pch -o %t %s // RUN: %clang_analyze_cc1 -triple x86_64-apple-macosx10.15.0 -include-pch %t \ // RUN: -analyzer-checker=core,apiModeling -verify %s // // RUN: %clang_cc1 -emit-pch -o %t %s // RUN: %clang_analyze_cc1 -include-pch %t \ // RUN: -analyzer-checker=core,apiModeling -verify %s // expected-no-diagnostics #ifndef HEADER #define HEADER // Pre-compiled header int foo(); // Literal data for this macro value will be null #define EOF -1 #else // Source file int test() { // we need a function call here to initiate erroneous routine return foo(); // no-crash } #endif