()
| 1295 | } |
| 1296 | |
| 1297 | #[test] |
| 1298 | fn init_modifier_backtrack() { |
| 1299 | // `static x = {` must match with type token `static` (the JS engine |
| 1300 | // backtracks the modifier loop) — harmless downstream, but collected. |
| 1301 | let f = facts("; static x = {1};\n; static struct cmd t[] = { {0} };"); |
| 1302 | assert!(f.init_tokens.contains(&"static".to_string())); |
| 1303 | assert!(f.init_tokens.contains(&"cmd".to_string())); |
| 1304 | } |
| 1305 | |
| 1306 | #[test] |