brintos

brintos / llvm-project-archived public Read only

0
0
Text · 770 B · 81a6429 Raw
39 lines · c
1// RUN: %clang_cc1 -verify=expected,c -x c -Wunused %s2// RUN: %clang_cc1 -verify=expected,cpp -x c++ -Wunused %s3 4void gh65156(void) {5 6int a\7ス = 42;8// expected-warning@-2 {{unused variable 'aス'}}9 10int 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 17int ス\18ス = 42;19// expected-warning@-2 {{unused variable 'スス'}}20 21int \22ス = 42;23// expected-warning@-2 {{unused variable 'ス'}}24 25}26 27void gh65156_err(void) {28 29int \30❌ = 0;31// cpp-error@-2 {{expected unqualified-id}}32// c-error@-3 {{expected identifier}}33 34 35int a\36❌ = 0;37// expected-error@-1 {{character <U+274C> not allowed in an identifier}}38}39