summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-01-24 20:50:50 +0000
committerJordan Rose <jordan_rose@apple.com>2013-01-24 20:50:50 +0000
commit4246ae0089571a1cbf357d7c4570e07c0193733c (patch)
tree60f3f47fe28d7d72063d9224427faaec232aef41 /clang/test
parent7f43dddae0669f0700cf04bf520c12d3301cd809 (diff)
downloadbcm5719-llvm-4246ae0089571a1cbf357d7c4570e07c0193733c.tar.gz
bcm5719-llvm-4246ae0089571a1cbf357d7c4570e07c0193733c.zip
As an extension, treat Unicode whitespace characters as whitespace.
llvm-svn: 173370
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Lexer/unicode.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Lexer/unicode.c b/clang/test/Lexer/unicode.c
new file mode 100644
index 00000000000..1d7b53e2c5e
--- /dev/null
+++ b/clang/test/Lexer/unicode.c
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+// This file contains Unicode characters; please do not "fix" them!
+
+extern int x; // expected-warning {{treating Unicode character as whitespace}}
+extern int x; // expected-warning {{treating Unicode character as whitespace}}
OpenPOWER on IntegriCloud