llvm-6502/test/LLVMC/MultiplePluginPriorities.td
Mikhail Glushenkov 2cea7bdef9 Disallow multiple instances of PluginPriority.
Several instances of PluginPriority in a single file most probably signifies a
programming error.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84350 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-17 20:08:30 +00:00

11 lines
319 B
TableGen

// Check that multiple plugin priorities are not allowed.
// RUN: ignore tblgen -I %p/../../include --gen-llvmc %s |& grep "More than one 'PluginPriority' instance found"
include "llvm/CompilerDriver/Common.td"
def Graph : CompilationGraph<[]>;
def Priority1 : PluginPriority<1>;
def Priority2 : PluginPriority<2>;