mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-18 20:15:05 +00:00
14 lines
375 B
Rust
14 lines
375 B
Rust
#![no_main]
|
|
use bumpalo::Bump;
|
|
use libfuzzer_sys::fuzz_target;
|
|
use test_syntax::test_helpers::Input;
|
|
|
|
fuzz_target!(|data: &[u8]| {
|
|
if let Ok(input) = std::str::from_utf8(data) {
|
|
let input = Input::Full(input);
|
|
let arena = Bump::new();
|
|
if input.parse_in(&arena).is_ok() {
|
|
input.check_invariants(|_| (), true, None);
|
|
}
|
|
}
|
|
});
|