Jacques Pienaar | bae4051 | 2018-06-24 09:10:36 -0700 | [diff] [blame^] | 1 | ; 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 |
| 11 | extfunc @illegaltype(i42) |
| 12 | ; ----- |
| 13 | ; CHECK: expected type |
| 14 | ; CHECK-NEXT: nestedtensor |
| 15 | extfunc @nestedtensor(tensor<tensor<i8>>) -> () |
| 16 | ; ----- |
| 17 | ; CHECK: expected '{' in CFG function |
| 18 | cfgfunc @foo() |
| 19 | cfgfunc @bar() |
| 20 | ; ----- |
| 21 | ; CHECK: expected a function identifier like |
| 22 | ; CHECK-NEXT: missingsigil |
| 23 | extfunc missingsigil() -> (i1, int, f32) |