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 00000000000..22aa1971787 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 00000000000..534a5230336 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 00000000000..3c1049929e1 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 00000000000..857cc085b2e Binary files /dev/null and b/src/test/ui/parser/utf16-le-without-bom.stderr differ