diff options
Diffstat (limited to 'test/Analysis/checker-plugins.c')
-rw-r--r-- | test/Analysis/checker-plugins.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Analysis/checker-plugins.c b/test/Analysis/checker-plugins.c new file mode 100644 index 000000000000..3882ba6661b4 --- /dev/null +++ b/test/Analysis/checker-plugins.c @@ -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}} +} |