summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-09-21 14:59:42 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-09-21 14:59:42 +0000
commit46aa524f0d34c21ccd64d674ae3628c69fb9883e (patch)
tree62a3dae95328988fee6065eca1b456ba4a2be856 /test
parent6d31c0b79a06483d7a80209bba34226ccf9088bb (diff)
downloadllvm-46aa524f0d34c21ccd64d674ae3628c69fb9883e.tar.gz
llvm-46aa524f0d34c21ccd64d674ae3628c69fb9883e.tar.bz2
llvm-46aa524f0d34c21ccd64d674ae3628c69fb9883e.tar.xz
llvmc: Allow multiple output languages.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114433 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/LLVMC/MultipleOutputLanguages.td27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/LLVMC/MultipleOutputLanguages.td b/test/LLVMC/MultipleOutputLanguages.td
new file mode 100644
index 0000000000..02512c2db7
--- /dev/null
+++ b/test/LLVMC/MultipleOutputLanguages.td
@@ -0,0 +1,27 @@
+// Check that multiple output languages work.
+// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
+// RUN: FileCheck -input-file %t %s
+// RUN: %compile_cxx %t
+// XFAIL: vg_leak
+
+include "llvm/CompilerDriver/Common.td"
+
+def dummy_tool : Tool<[
+ (command "dummy_cmd"),
+ (in_language "dummy_lang"),
+ (out_language ["another_dummy_lang", "yet_another_dummy_lang"])
+]>;
+
+def another_dummy_tool : Tool<[
+ (command "another_dummy_cmd"),
+ (in_language ["another_dummy_lang", "some_other_dummy_lang"]),
+ (out_language "executable"),
+ (join)
+]>;
+
+// CHECK: new SimpleEdge("dummy_tool")
+// CHECK: new SimpleEdge("another_dummy_tool")
+def DummyGraph : CompilationGraph<[
+ (edge "root", "dummy_tool"),
+ (edge "dummy_tool", "another_dummy_tool")
+]>;