]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/source/issue-3234.rs
Rollup merge of #107166 - petrochenkov:nooptable, r=oli-obk
[rust.git] / src / tools / rustfmt / tests / source / issue-3234.rs
1 macro_rules! fuzz_target {
2     (|$data:ident: &[u8]| $body:block) => {};
3 }
4
5 fuzz_target!(|data: &[u8]| {
6
7     if let Ok(app_img) = AppImage::parse(data) {
8         if let Ok(app_img) = app_img.sign_for_secureboot(include_str!("../../test-data/signing-key")) {
9             assert!(app_img.is_signed());
10             Gbl::from_app_image(app_img).to_bytes();
11         }
12     }
13
14 });