xref: /llvm-project/mlir/test/mlir-tblgen/constant-str-attr-invalid.mlir (revision 44610c01aeed8402da982ab59c47f45e7b3bc93b)
1// RUN: mlir-opt -verify-diagnostics %s
2
3// Test DefaultValuedAttr<StrAttr, ""> is recognized as "no default value"
4test.no_str_value {} // expected-error {{'test.no_str_value' op requires attribute 'value'}}
5