blob: 288222b48985b5f0adddf89714725650b3a99f30 [file] [log] [blame]
Jacques Pienaarbae40512018-06-24 09:10:36 -07001; TODO(andydavis) Resolve relative path issue w.r.t invoking mlir-opt in RUN
2; statements (perhaps through using lit config substitutions).
3;
4; RUN: %S/../../mlir-opt %s -o - -check-parser-errors 2>&1 | FileCheck %s
5
6; Check different error cases.
7; TODO(jpienaar): This is checking the errors by simplify verifying the output.
8; -----
9; CHECK: expected type
10; CHECK-NEXT: illegaltype
11extfunc @illegaltype(i42)
12; -----
13; CHECK: expected type
14; CHECK-NEXT: nestedtensor
15extfunc @nestedtensor(tensor<tensor<i8>>) -> ()
16; -----
17; CHECK: expected '{' in CFG function
18cfgfunc @foo()
19cfgfunc @bar()
20; -----
21; CHECK: expected a function identifier like
22; CHECK-NEXT: missingsigil
23extfunc missingsigil() -> (i1, int, f32)