aboutsummaryrefslogtreecommitdiff
path: root/tests/include/sys_endian_endian_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/include/sys_endian_endian_test.c')
-rw-r--r--tests/include/sys_endian_endian_test.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/include/sys_endian_endian_test.c b/tests/include/sys_endian_endian_test.c
new file mode 100644
index 000000000000..4d668f8d5625
--- /dev/null
+++ b/tests/include/sys_endian_endian_test.c
@@ -0,0 +1,12 @@
+/*-
+ * 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 sys/endian.h are included
+ * with endian.h first.
+ */
+#include <endian.h>
+#include "sys_endian_test.c"