allwinner_a64/android/external/clang/test/Analysis/checker-plugins.c
2018-08-08 16:14:42 +08:00

10 lines
318 B
C

// 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}}
}