소스 검색

tests: forward all extensions into `Forward` struct

Signed-off-by: Zhouqi Jiang <[email protected]>
Zhouqi Jiang 1 년 전
부모
커밋
faa1064b46
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  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,
+}