summaryrefslogtreecommitdiffstats
path: root/third_party/rust/memchr/src/tests/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/memchr/src/tests/mod.rs')
-rw-r--r--third_party/rust/memchr/src/tests/mod.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/third_party/rust/memchr/src/tests/mod.rs b/third_party/rust/memchr/src/tests/mod.rs
new file mode 100644
index 0000000000..f4d406cd1e
--- /dev/null
+++ b/third_party/rust/memchr/src/tests/mod.rs
@@ -0,0 +1,15 @@
+mod memchr;
+
+// For debugging, particularly in CI, print out the byte order of the current
+// target.
+#[cfg(all(feature = "std", target_endian = "little"))]
+#[test]
+fn byte_order() {
+ eprintln!("LITTLE ENDIAN");
+}
+
+#[cfg(all(feature = "std", target_endian = "big"))]
+#[test]
+fn byte_order() {
+ eprintln!("BIG ENDIAN");
+}