xref: /minix3/external/bsd/llvm/dist/clang/test/Analysis/checker-plugins.c (revision bdb565187c0f1a04513dd488df843317b27f86c8)
1 // RUN: %clang_cc1 -load %llvmshlibdir/SampleAnalyzerPlugin%pluginext -analyze -analyzer-checker='example.MainCallChecker' -verify %s
2 // REQUIRES: plugins, examples
3 
4 // Test that the MainCallChecker example analyzer plugin loads and runs.
5 
6 int main();
7 
8 void caller() {
9   main(); // expected-warning {{call to main}}
10 }
11