forked from OSchip/llvm-project
11 lines
317 B
C
11 lines
317 B
C
// RUN: %clang_analyze_cc1 -load %llvmshlibdir/SampleAnalyzerPlugin%pluginext -analyzer-checker='example.MainCallChecker' -verify %s
|
|
// REQUIRES: plugins, examples
|
|
|
|
// Test that the MainCallChecker example analyzer plugin loads and runs.
|
|
|
|
int main();
|
|
|
|
void caller() {
|
|
main(); // expected-warning {{call to main}}
|
|
}
|