llvm-project/clang/test/Lexer/comment-utf8.c

28 lines
701 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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*/
};
/*ααααααααα*/