()
| 1276 | } |
| 1277 | |
| 1278 | #[test] |
| 1279 | fn dispatch_backtracks_segments() { |
| 1280 | let f = facts("int go(struct c *x){ x->cmd->proc(1); tbl[i](2); (*ops[k])(3); }"); |
| 1281 | assert!(f.dispatch_fields.contains(&"proc".to_string())); |
| 1282 | assert!(f.array_dispatch_names.contains(&"tbl".to_string())); |
| 1283 | assert!(f.array_dispatch_names.contains(&"ops".to_string())); |
| 1284 | } |
| 1285 | |
| 1286 | #[test] |