xref: /llvm-project/clang/test/Lexer/comment-utf8.c (revision d4892a168f51dabdba255af3a8d23049fcb66960)
1*d4892a16SCorentin Jabot // RUN: %clang_cc1 -fsyntax-only %s -Winvalid-utf8 -verify
2*d4892a16SCorentin Jabot // expected-no-diagnostics
3*d4892a16SCorentin Jabot 
4*d4892a16SCorentin Jabot 
5*d4892a16SCorentin Jabot //§ § § �� 你好 ©
6*d4892a16SCorentin Jabot 
7*d4892a16SCorentin Jabot /*§ § § �� 你好 ©*/
8*d4892a16SCorentin Jabot 
9*d4892a16SCorentin Jabot /*
10*d4892a16SCorentin Jabot § § § �� 你好 ©©©
11*d4892a16SCorentin Jabot */
12*d4892a16SCorentin Jabot 
13*d4892a16SCorentin Jabot /* § § § �� 你好 © */
14*d4892a16SCorentin Jabot /*
15*d4892a16SCorentin Jabot     a longer comment to exerce the vectorized code path
16*d4892a16SCorentin Jabot     ----------------------------------------------------
17*d4892a16SCorentin Jabot     αααααααααααααααααααααα      // here is some unicode
18*d4892a16SCorentin Jabot     ----------------------------------------------------
19*d4892a16SCorentin Jabot     ----------------------------------------------------
20*d4892a16SCorentin Jabot */
21*d4892a16SCorentin Jabot 
22*d4892a16SCorentin Jabot // The following test checks that a short comment is not merged
23*d4892a16SCorentin Jabot // with a subsequent long comment containing utf-8
24*d4892a16SCorentin Jabot enum a {
25*d4892a16SCorentin Jabot     x  /* 01234567890ABCDEF*/
26*d4892a16SCorentin Jabot };
27*d4892a16SCorentin Jabot /*ααααααααα*/
28