1// RUN: mlir-tblgen -gen-directive-decl -I %S/../../../llvm/include %s | FileCheck -match-full-lines %s
2
3include "llvm/Frontend/Directive/DirectiveBase.td"
4
5def TDLCV_vala : ClauseVal<"vala",1,1> {}
6def TDLCV_valb : ClauseVal<"valb",2,1> {}
7def TDLCV_valc : ClauseVal<"valc",3,0> { let isDefault = 1; }
8
9def TDLC_ClauseA : Clause<"clausea"> {
10  let flangClass = "TdlClauseA";
11  let enumClauseValue = "AKind";
12  let allowedClauseValues = [
13    TDLCV_vala,
14    TDLCV_valb,
15    TDLCV_valc
16  ];
17}
18
19// CHECK: def AKindvala : StrEnumAttrCase<"vala">;
20// CHECK: def AKindvalb : StrEnumAttrCase<"valb">;
21// CHECK: def AKind: StrEnumAttr<
22// CHECK:   "ClauseAKind",
23// CHECK:   "AKind Clause",
24// CHECK:   [AKindvala,AKindvalb]> {
25// CHECK:     let cppNamespace = "::mlir::omp";
26// CHECK: }
27