[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Lexer / comment-invalid-utf8.c
blobb8bf551dd856453a6220d9fcbbac07798a701b6d
1 // RUN: %clang_cc1 -fsyntax-only %s -Winvalid-utf8 -verify=expected
2 // RUN: %clang_cc1 -fsyntax-only %s -verify=nowarn
3 // nowarn-no-diagnostics
5 // This file is purposefully encoded as windows-1252
6 // be careful when modifying.
8 //€
9 // expected-warning@-1 {{invalid UTF-8 in comment}}
11 // € ‚ƒ„…†‡ˆ‰ Š ‹ Œ Ž
12 // expected-warning@-1 6{{invalid UTF-8 in comment}}
14 /*€*/
15 // expected-warning@-1 {{invalid UTF-8 in comment}}
17 /*€ ‚ƒ„…†‡ˆ‰ Š ‹ Œ Ž*/
18 // expected-warning@-1 6{{invalid UTF-8 in comment}}
21
23 // expected-warning@-2 {{invalid UTF-8 in comment}}
25 // abcd
26 // €abcd
27 // expected-warning@-1 {{invalid UTF-8 in comment}}