blob: ee60ec6e219297e4936ce2114b7ce431ba2b0440 [file] [log] [blame]
Dominic Chen184c6242017-03-03 18:02:02 +00001// RUN: %clang_analyze_cc1 -load %llvmshlibdir/SampleAnalyzerPlugin%pluginext -analyzer-checker='example.MainCallChecker' -verify %s
Alp Toker099d4ee2014-01-09 00:47:40 +00002// REQUIRES: plugins, examples
3
4// Test that the MainCallChecker example analyzer plugin loads and runs.
5
6int main();
7
8void caller() {
9 main(); // expected-warning {{call to main}}
10}