aboutsummaryrefslogtreecommitdiff
path: root/tests/include/byteswap_endian_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/include/byteswap_endian_test.c')
-rw-r--r--tests/include/byteswap_endian_test.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/include/byteswap_endian_test.c b/tests/include/byteswap_endian_test.c
new file mode 100644
index 000000000000..012c1b5c447e
--- /dev/null
+++ b/tests/include/byteswap_endian_test.c
@@ -0,0 +1,9 @@
+/*-
+ * Copyright (c) 2021 M. Warner Losh <imp@FreeBSD.org>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+/* Make sure this still passes if both endian.h and byteswap.h included */
+#include <endian.h>
+#include "byteswap_test.c"