summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/c-unicode.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/c-unicode.c')
-rw-r--r--clang/test/CodeGen/c-unicode.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGen/c-unicode.c b/clang/test/CodeGen/c-unicode.c
new file mode 100644
index 00000000000..e9aba558c62
--- /dev/null
+++ b/clang/test/CodeGen/c-unicode.c
@@ -0,0 +1,7 @@
+// RUN: %clang -S %s -o - | FileCheck %s -check-prefix=ALLOWED
+// RUN: not %clang -std=c89 -S %s -o - 2>&1 | FileCheck %s -check-prefix=DENIED
+int \uaccess = 0;
+// ALLOWED: "곎ss":
+// ALLOWED-NOT: "\uaccess":
+// DENIED: warning: universal character names are only valid in C99 or C++; treating as '\' followed by identifier [-Wunicode]
+// DENIED: error: expected identifier or '('
OpenPOWER on IntegriCloud