1 // RUN: mlir-opt %s -split-input-file -verify-diagnostics
3 // expected-error@+2 {{expected identifier key in file metadata dictionary}}
8 // expected-error@+2 {{expected ':'}}
15 // expected-error@+2 {{unknown key 'some_key' in file metadata dictionary}}
22 //===----------------------------------------------------------------------===//
23 // `dialect_resources`
24 //===----------------------------------------------------------------------===//
26 // expected-error@+2 {{expected '{'}}
28 dialect_resources: "value"
33 // expected-error@+3 {{expected identifier key for 'resource' entry}}
42 // expected-error@+3 {{expected ':'}}
51 // expected-error@+3 {{dialect 'foobar' is unknown}}
62 // expected-error@+4 {{unknown 'resource' key 'unknown_entry' for dialect 'ml_program'}}
73 // expected-error@+4 {{expected hex string blob for key 'invalid_blob'}}
84 // expected-error@+4 {{expected hex string blob for key 'invalid_blob'}}
95 // expected-error@+4 {{expected hex string blob for key 'invalid_blob' to encode alignment in first 4 bytes}}
106 //===----------------------------------------------------------------------===//
107 // `external_resources`
108 //===----------------------------------------------------------------------===//
110 // expected-error@+2 {{expected '{'}}
112 external_resources: "value"
117 // expected-error@+3 {{expected identifier key for 'resource' entry}}
119 external_resources: {
126 // expected-error@+3 {{expected ':'}}
128 external_resources: {