diff options
| author | Mikhail Glushenkov <foldr@codedgers.com> | 2009-10-17 20:08:30 +0000 |
|---|---|---|
| committer | Mikhail Glushenkov <foldr@codedgers.com> | 2009-10-17 20:08:30 +0000 |
| commit | b2eba4904ffa2baff784a0fb1738fd1b81640dc7 (patch) | |
| tree | 8bf46bf2023c2fa7c2beb5b6314030a4fe77dcd3 /llvm/test | |
| parent | 4500d416aaafcb3dc0f36b1973a009b3b38e8e5a (diff) | |
| download | bcm5719-llvm-b2eba4904ffa2baff784a0fb1738fd1b81640dc7.tar.gz bcm5719-llvm-b2eba4904ffa2baff784a0fb1738fd1b81640dc7.zip | |
Disallow multiple instances of PluginPriority.
Several instances of PluginPriority in a single file most probably signifies a
programming error.
llvm-svn: 84350
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/LLVMC/MultiplePluginPriorities.td | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/LLVMC/MultiplePluginPriorities.td b/llvm/test/LLVMC/MultiplePluginPriorities.td new file mode 100644 index 00000000000..721b7ccd0d2 --- /dev/null +++ b/llvm/test/LLVMC/MultiplePluginPriorities.td @@ -0,0 +1,10 @@ +// 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>; |

