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

28 lines
628 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
// RUN: %clang_cc1 -fsyntax-only %s -verify=nowarn
// nowarn-no-diagnostics
// This file is purposefully encoded as windows-1252
// be careful when modifying.
//€
// expected-warning@-1 {{invalid UTF-8 in comment}}
// € ‚ƒ„…†‡ˆ‰ Š Œ Ž
// expected-warning@-1 6{{invalid UTF-8 in comment}}
/*€*/
// expected-warning@-1 {{invalid UTF-8 in comment}}
/*€ ‚ƒ„…†‡ˆ‰ Š Œ Ž*/
// expected-warning@-1 6{{invalid UTF-8 in comment}}
/*
*/
// expected-warning@-2 {{invalid UTF-8 in comment}}
// abcd
// €abcd
// expected-warning@-1 {{invalid UTF-8 in comment}}