aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Lexer/comment-invalid-utf8.c
blob: b8bf551dd856453a6220d9fcbbac07798a701b6d (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
// 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}}