We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3417ae commit 74acbb4Copy full SHA for 74acbb4
2 files changed
.github/workflows/quick.yml
@@ -0,0 +1,18 @@
1
+name: test size of time_t
2
+
3
+on: workflow_dispatch
4
5
+defaults:
6
+ run:
7
+ shell: bash
8
9
+jobs:
10
+ steps:
11
+ - uses: actions/checkout@v6
12
+ - run: |
13
+ rustup target add i686-pc-windows-gnu
14
+ rustup default nightly-i686-pc-windows-gnu
15
+ rustc -Vv
16
17
+ cd ./libc-test
18
+ cargo t --target i686-pc-windows-gnu
libc-test/tests/quick.rs
@@ -0,0 +1,9 @@
+#![cfg(windows)]
+#[test]
+fn test() {
+ #[cfg(all(target_arch = "x86", target_env = "gnu"))]
+ assert_eq!(size_of::<libc::time_t>(), 32);
+ #[cfg(not(all(target_arch = "x86", target_env = "gnu")))]
+ assert_eq!(size_of::<libc::time_t>(), 64);
+}
0 commit comments