From: Alp Toker Date: Thu, 9 Jan 2014 00:47:40 +0000 (+0000) Subject: Add a test for Static Analyzer checker plugins X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa369b017090b51d26769360a6c45c1f10c212a7;p=clang Add a test for Static Analyzer checker plugins git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198820 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Analysis/checker-plugins.c b/test/Analysis/checker-plugins.c new file mode 100644 index 0000000000..3882ba6661 --- /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}} +}