Browse Source

tests: forward all extensions into `Forward` struct

Signed-off-by: Zhouqi Jiang <[email protected]>
Zhouqi Jiang 1 year ago
parent
commit
faa1064b46
1 changed files with 9 additions and 0 deletions
  1. 9 0
      tests/forward-struct.rs

+ 9 - 0
tests/forward-struct.rs

@@ -0,0 +1,9 @@
+use rustsbi::{RustSBI, Forward};
+
+// The `Forward` structure must build
+
+#[derive(RustSBI)]
+struct ForwardAll {
+    #[rustsbi(console, cppc, hsm, ipi, nacl, pmu, reset, fence, sta, susp, timer, info)]
+    forward: Forward,
+}