Author: rsmith Date: Fri Sep 18 21:14:12 2015 New Revision: 248079 URL: http://llvm.org/viewvc/llvm-project?rev=248079&view=rev Log: Add test that we correctly allow some non-letter unicode characters in identifiers, and extend existing test to also cover C++.
Modified: cfe/trunk/test/Lexer/unicode.c Modified: cfe/trunk/test/Lexer/unicode.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/unicode.c?rev=248079&r1=248078&r2=248079&view=diff ============================================================================== --- cfe/trunk/test/Lexer/unicode.c (original) +++ cfe/trunk/test/Lexer/unicode.c Fri Sep 18 21:14:12 2015 @@ -1,4 +1,5 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify -x c -std=c11 %s +// RUN: %clang_cc1 -fsyntax-only -verify -x c++ -std=c++11 %s // RUN: %clang_cc1 -E -DPP_ONLY=1 %s -o %t // RUN: FileCheck --strict-whitespace --input-file=%t %s @@ -24,3 +25,11 @@ COPYRIGHT // CHECK: Copyright © {{2012}} CHECK: The preprocessor should not complain about Unicode characters like ©. #endif + +// A ð¹ by any other name.... +extern int ð¹; +int ðµ(int ð») { return ð»+ 1; } +int main () { + int ð· = ðµ(ð¹); + return ð·; +} _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits