Skip to content

Commit 74acbb4

Browse files
committed
chore: wip
1 parent f3417ae commit 74acbb4

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/quick.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
- run: |
17+
cd ./libc-test
18+
cargo t --target i686-pc-windows-gnu

libc-test/tests/quick.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#![cfg(windows)]
2+
3+
#[test]
4+
fn test() {
5+
#[cfg(all(target_arch = "x86", target_env = "gnu"))]
6+
assert_eq!(size_of::<libc::time_t>(), 32);
7+
#[cfg(not(all(target_arch = "x86", target_env = "gnu")))]
8+
assert_eq!(size_of::<libc::time_t>(), 64);
9+
}

0 commit comments

Comments
 (0)