summaryrefslogtreecommitdiff
path: root/test/LLVMC/NoActions.td
blob: 9c2d45a810f6bdfd8834f1edd59d637df4c45b20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Check that tools without associated actions are accepted.
// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
// RUN: FileCheck -input-file %t %s
// RUN: %compile_cxx -fexceptions -x c++ %t

include "llvm/CompilerDriver/Common.td"

// CHECK: class dummy_tool : public Tool {
def dummy_tool : Tool<[
(cmd_line "dummy_cmd $INFILE"),
(in_language "dummy"),
(out_language "dummy")
]>;

def DummyGraph : CompilationGraph<[SimpleEdge<"root", "dummy_tool">]>;