diff --git a/src/test/ui/parser/utf16-be-without-bom.rs b/src/test/ui/parser/utf16-be-without-bom.rs new file mode 100644 index 000000000000..22aa19717873 Binary files /dev/null and b/src/test/ui/parser/utf16-be-without-bom.rs differ diff --git a/src/test/ui/parser/utf16-be-without-bom.stderr b/src/test/ui/parser/utf16-be-without-bom.stderr new file mode 100644 index 000000000000..534a52303369 Binary files /dev/null and b/src/test/ui/parser/utf16-be-without-bom.stderr differ diff --git a/src/test/ui/parser/utf16-le-without-bom.rs b/src/test/ui/parser/utf16-le-without-bom.rs new file mode 100644 index 000000000000..3c1049929e11 Binary files /dev/null and b/src/test/ui/parser/utf16-le-without-bom.rs differ diff --git a/src/test/ui/parser/utf16-le-without-bom.stderr b/src/test/ui/parser/utf16-le-without-bom.stderr new file mode 100644 index 000000000000..857cc085b2e8 Binary files /dev/null and b/src/test/ui/parser/utf16-le-without-bom.stderr differ