aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Lexer/comment-utf8.c
blob: 1b3009be9520581a6956608b62f2f5b19a108361 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// RUN: %clang_cc1 -fsyntax-only %s -Winvalid-utf8 -verify
// expected-no-diagnostics


//§ § § 😀 你好 ©

/*§ § § 😀 你好 ©*/

/*
§ § § 😀 你好 ©©©
*/

/* § § § 😀 你好 © */
/*
    a longer comment to exerce the vectorized code path
    ----------------------------------------------------
    αααααααααααααααααααααα      // here is some unicode
    ----------------------------------------------------
    ----------------------------------------------------
*/

// The following test checks that a short comment is not merged
// with a subsequent long comment containing utf-8
enum a {
    x  /* 01234567890ABCDEF*/
};
/*ααααααααα*/