Add a test for Static Analyzer checker plugins

llvm-svn: 198820
This commit is contained in:
Alp Toker 2014-01-09 00:47:40 +00:00
parent 5e10aaeb18
commit 099d4ee125
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
// RUN: %clang_cc1 -load %llvmshlibdir/SampleAnalyzerPlugin%pluginext -analyze -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}}
}