From fa369b017090b51d26769360a6c45c1f10c212a7 Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Thu, 9 Jan 2014 00:47:40 +0000 Subject: [PATCH] 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 --- test/Analysis/checker-plugins.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/Analysis/checker-plugins.c 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}} +} -- 2.40.0