aboutsummaryrefslogtreecommitdiff
path: root/test/Lexer/utf-16.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Lexer/utf-16.c')
-rw-r--r--test/Lexer/utf-16.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/Lexer/utf-16.c b/test/Lexer/utf-16.c
index 7c14e3932b..2b313e49fd 100644
--- a/test/Lexer/utf-16.c
+++ b/test/Lexer/utf-16.c
@@ -1,4 +1,6 @@
-// RUN: not %clang -xc %s.txt -fsyntax-only 2>&1 | grep 'UTF-16 (LE) byte order mark detected'
+// RUN: not %clang %s -fsyntax-only -verify
// rdar://7876588
-// This test verifies that clang gives a decent error for UTF-16 source files. \ No newline at end of file
+// This test verifies that clang gives a decent error for UTF-16 source files.
+
+#include "utf-16.c.txt" // expected-error {{UTF-16 (LE) byte order mark detected}}