aboutsummaryrefslogtreecommitdiff
path: root/test/Frontend
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2013-12-13 17:04:55 +0000
committerAlp Toker <alp@nuanti.com>2013-12-13 17:04:55 +0000
commite3739cdb5fe9e51b464c8defce598d290466a712 (patch)
tree6dcbbeedc0a381f445168bf630f6849179abee4c /test/Frontend
parent1366f26a78a293be5054f32001ce73a4db4a82f8 (diff)
downloadclang_35a-e3739cdb5fe9e51b464c8defce598d290466a712.tar.gz
Fix raw lex crash and -frewrite-includes noeol-at-eof failure
Raw lexers don't have a preprocessor so we need to null check. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197245 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Frontend')
-rw-r--r--test/Frontend/rewrite-includes-eof.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Frontend/rewrite-includes-eof.c b/test/Frontend/rewrite-includes-eof.c
new file mode 100644
index 0000000000..af7fd89e3d
--- /dev/null
+++ b/test/Frontend/rewrite-includes-eof.c
@@ -0,0 +1,4 @@
+// RUN: %clang_cc1 -E -frewrite-includes -I %S/Inputs %s
+// expected-no-diagnostics
+// Note: there's no newline at the end of this C file.
+#include "rewrite-includes-bom.h" \ No newline at end of file