Skip to content

Commit 47edd40

Browse files
committed
feat: add a compilation test to make sure the macros work
1 parent b19cc7c commit 47edd40

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

examples/macros.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//! This file tests if the macros defined by the hermit-entry crate,
2+
//! which affect linker .note entries, can actually be used.
3+
4+
#[cfg(feature = "kernel")]
5+
hermit_entry::define_abi_tag!();
6+
7+
#[cfg(feature = "kernel")]
8+
hermit_entry::define_entry_version!();
9+
10+
fn main() {}

0 commit comments

Comments
 (0)