diff options
author | cvs2svn <admin@example.com> | 2025-04-14 17:32:06 +0000 |
---|---|---|
committer | cvs2svn <admin@example.com> | 2025-04-14 17:32:06 +0000 |
commit | eb8dd9dca1228af0cd132f515509051ecfabf6f6 (patch) | |
tree | edb6da6af7e865d488dc1a29309f1e1ec226e603 /src/regress/lib/libc/ffs | |
parent | 247f0352e0ed72a4f476db9dc91f4d982bc83eb2 (diff) | |
download | openbsd-tb_20250414.tar.gz openbsd-tb_20250414.tar.bz2 openbsd-tb_20250414.zip |
This commit was manufactured by cvs2git to create tag 'tb_20250414'.tb_20250414
Diffstat (limited to 'src/regress/lib/libc/ffs')
-rw-r--r-- | src/regress/lib/libc/ffs/Makefile | 6 | ||||
-rw-r--r-- | src/regress/lib/libc/ffs/ffs_test.c | 18 |
2 files changed, 0 insertions, 24 deletions
diff --git a/src/regress/lib/libc/ffs/Makefile b/src/regress/lib/libc/ffs/Makefile deleted file mode 100644 index 1ad004394f..0000000000 --- a/src/regress/lib/libc/ffs/Makefile +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | PROG= ffs_test | ||
2 | |||
3 | # prevent constant folding and inlining of __builtin_ffs() | ||
4 | CFLAGS+= -ffreestanding | ||
5 | |||
6 | .include <bsd.regress.mk> | ||
diff --git a/src/regress/lib/libc/ffs/ffs_test.c b/src/regress/lib/libc/ffs/ffs_test.c deleted file mode 100644 index bc1e5c53c2..0000000000 --- a/src/regress/lib/libc/ffs/ffs_test.c +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | /* $OpenBSD: ffs_test.c,v 1.1 2020/06/26 20:16:22 naddy Exp $ */ | ||
2 | /* | ||
3 | * Written by Christian Weisgerber <naddy@openbsd.org>. | ||
4 | * Public domain. | ||
5 | */ | ||
6 | |||
7 | #include <assert.h> | ||
8 | #include <stdint.h> | ||
9 | #include <string.h> | ||
10 | |||
11 | int | ||
12 | main(void) | ||
13 | { | ||
14 | assert(ffs(0) == 0); | ||
15 | assert(ffs(0x8080) == 8); | ||
16 | assert(ffs(INT32_MIN) == 32); | ||
17 | return (0); | ||
18 | } | ||