Take into account that there may be a BOM at the beginning of the file,
when computing the size of the precompiled preamble.
llvm-svn: 166659
diff --git a/clang/test/Index/preamble-reparse-with-BOM.m b/clang/test/Index/preamble-reparse-with-BOM.m
new file mode 100644
index 0000000..a2a89c8
--- /dev/null
+++ b/clang/test/Index/preamble-reparse-with-BOM.m
@@ -0,0 +1,6 @@
+
+@interface I2
+@end
+
+// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_FAILONERROR=1 \
+// RUN:   c-index-test -test-load-source-reparse 1 local %s