Validate the generated C++ code in llvmc tests.
[oota-llvm.git] / test / LLVMC / NoActions.td
1 // Check that tools without associated actions are accepted.
2 // RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
3 // RUN: grep dummy_tool %t
4 // RUN: %compile_cxx -fexceptions -x c++ %t
5
6 include "llvm/CompilerDriver/Common.td"
7
8 def dummy_tool : Tool<[
9 (cmd_line "dummy_cmd $INFILE"),
10 (in_language "dummy"),
11 (out_language "dummy")
12 ]>;
13
14 def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;