When removing a function from the function set and adding it to deferred, we
[llvm.git] / test / LLVMC / MultipleOutputLanguages.td
blobae0c92eefcf159e146e3ef92c728bd65e7583bb2
1 // Check that multiple output languages work.
2 // RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
3 // RUN: FileCheck -input-file %t %s
4 // RUN: %compile_cxx %t
5 // XFAIL: vg_leak
7 include "llvm/CompilerDriver/Common.td"
9 def dummy_tool : Tool<[
10     (command "dummy_cmd"),
11     (in_language "dummy_lang"),
12     (out_language "another_dummy_lang", "yet_another_dummy_lang")
13 ]>;
15 def another_dummy_tool : Tool<[
16     (command "another_dummy_cmd"),
17     (in_language "another_dummy_lang", "some_other_dummy_lang"),
18     (out_language "executable"),
19     (join)
20 ]>;
22 // CHECK: new SimpleEdge("dummy_tool")
23 // CHECK: new SimpleEdge("another_dummy_tool")
24 def DummyGraph : CompilationGraph<[
25     (edge "root", "dummy_tool"),
26     (edge "dummy_tool", "another_dummy_tool")
27 ]>;