1 // RUN: not mlir-tblgen -on-deprecated=error -gen-op-decls -I %S/../../include -DERROR1 %s 2>&1 | FileCheck --check-prefix=ERROR1 %s
3 include "mlir/IR/OpBase.td"
5 def Test_Dialect : Dialect {
6 let name = "test_dialect";
10 def OpTraitA : NativeOpTrait<"OpTraitA">, Deprecated<"use `bar` instead">;
12 // ERROR1: warning: Using deprecated def `OpTraitA`
13 // ERROR1: use `bar` instead
14 def OpTraitWithoutDependentTrait : Op<Test_Dialect, "default_value", [OpTraitA]> {}