| 1 |
// RUN: %clang_cc1 -verify=expected,c -x c -Wunused %s |
| 2 |
// RUN: %clang_cc1 -verify=expected,cpp -x c++ -Wunused %s |
| 3 |
|
| 4 |
void gh65156(void) { |
| 5 |
|
| 6 |
int a\ |
| 7 |
ス = 42; |
| 8 |
// expected-warning@-2 {{unused variable 'aス'}} |
| 9 |
|
| 10 |
int b\ |
| 11 |
\ |
| 12 |
ス = 42; |
| 13 |
// expected-warning@-2 {{backslash and newline separated by space}} |
| 14 |
// expected-warning@-4 {{backslash and newline separated by space}} |
| 15 |
// expected-warning@-5 {{unused variable 'bス'}} |
| 16 |
|
| 17 |
int ス\ |
| 18 |
ス = 42; |
| 19 |
// expected-warning@-2 {{unused variable 'スス'}} |
| 20 |
|
| 21 |
int \ |
| 22 |
ス = 42; |
| 23 |
// expected-warning@-2 {{unused variable 'ス'}} |
| 24 |
|
| 25 |
} |
| 26 |
|
| 27 |
void gh65156_err(void) { |
| 28 |
|
| 29 |
int \ |
| 30 |
❌ = 0; |
| 31 |
// cpp-error@-2 {{expected unqualified-id}} |
| 32 |
// c-error@-3 {{expected identifier}} |
| 33 |
|
| 34 |
|
| 35 |
int a\ |
| 36 |
❌ = 0; |
| 37 |
// expected-error@-1 {{character <U+274C> not allowed in an identifier}} |
| 38 |
} |