summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2013-11-27 22:54:04 +0000
committerAlp Toker <alp@nuanti.com>2013-11-27 22:54:04 +0000
commite3d6bcf5e0807174ece51251fd5893bda8ed2e9c (patch)
tree74a8e3990710d58c57d4237223d1f47b65b4c55f /clang/test
parentc90584b6f68d103b4d91fd0682c7f1b81dc6b1e7 (diff)
downloadbcm5719-llvm-e3d6bcf5e0807174ece51251fd5893bda8ed2e9c.tar.gz
bcm5719-llvm-e3d6bcf5e0807174ece51251fd5893bda8ed2e9c.zip
Improve BOM test from r195877
1) Use %clang_cc1 instead of the driver 2) Validate that the input contains a BOM 3) Validate that the BOM has been stripped from the output llvm-svn: 195886
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Frontend/rewrite-includes-bom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Frontend/rewrite-includes-bom.c b/clang/test/Frontend/rewrite-includes-bom.c
index a1aa4c98f86..276c994fb0e 100644
--- a/clang/test/Frontend/rewrite-includes-bom.c
+++ b/clang/test/Frontend/rewrite-includes-bom.c
@@ -1,4 +1,5 @@
-// RUN: %clang -E -frewrite-includes -I %S/Inputs %s -o - | %clang -fsyntax-only -Xclang -verify -x c -
+// RUN: grep '^\xEF\xBB\xBF' %S/Inputs/rewrite-includes-bom.h
+// RUN: %clang_cc1 -E -frewrite-includes -I %S/Inputs %s -o - | %clang_cc1 -fsyntax-only -verify -x c - | not grep '\xEF\xBB\xBF'
// expected-no-diagnostics
#include "rewrite-includes-bom.h"
OpenPOWER on IntegriCloud