mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-30 22:36:05 +00:00

Somehow the entire plugin infrastructure went wholly untested until now. The only plugins available for use in testing are the examples, so plugin tests will only be run if CLANG_BUILD_EXAMPLES is enabled in the build. (The examples should really be enabled by default, not just to aid testing but also to prevent bitrot in some key user-facing code. I'll propose that shortly.) Requires supporting changes in LLVM r198746. llvm-svn: 198747
6 lines
181 B
C
6 lines
181 B
C
// RUN: %clang_cc1 -load %llvmshlibdir/PrintFunctionNames%pluginext -plugin print-fns %s 2>&1 | FileCheck %s
|
|
// REQUIRES: plugins, examples
|
|
|
|
// CHECK: top-level-decl: "x"
|
|
void x();
|