xref: /aosp_15_r20/external/clang/test/CodeGen/c-unicode.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // REQUIRES: x86-registered-target
2*67e74705SXin Li // RUN: %clang --target=x86_64--linug-gnu -S %s -o - | FileCheck %s -check-prefix=ALLOWED
3*67e74705SXin Li // RUN: not %clang --target=x86_64--linux-gnu -std=c89 -S %s -o - 2>&1 | FileCheck %s -check-prefix=DENIED
4*67e74705SXin Li int \uaccess = 0;
5*67e74705SXin Li // ALLOWED: "곎ss":
6*67e74705SXin Li // ALLOWED-NOT: "\uaccess":
7*67e74705SXin Li // DENIED: warning: universal character names are only valid in C99 or C++; treating as '\' followed by identifier [-Wunicode]
8*67e74705SXin Li // DENIED: error: expected identifier or '('
9