xref: /minix3/external/bsd/llvm/dist/clang/test/FixIt/fixit-unicode-with-utf8-output.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc // This test is an additional set of checks for the fixit-unicode.c test for
2f4a2713aSLionel Sambuc // systems capable of outputting Unicode characters to the standard output in
3f4a2713aSLionel Sambuc // the UTF-8 encoding.
4f4a2713aSLionel Sambuc // RUN: not %clang_cc1 -fsyntax-only %S/fixit-unicode.c 2>&1 | FileCheck -strict-whitespace %s
5*0a6a1f1dSLionel Sambuc // REQUIRES: utf8-capable-terminal
6f4a2713aSLionel Sambuc 
7f4a2713aSLionel Sambuc // CHECK: warning: format specifies type 'int' but the argument has type 'long'
8f4a2713aSLionel Sambuc // CHECK: {{^  printf\("∆: %d", 1L\);}}
9f4a2713aSLionel Sambuc // CHECK: {{^             ~~   \^~}}
10f4a2713aSLionel Sambuc 
11f4a2713aSLionel Sambuc // CHECK: error: use of undeclared identifier 'กsss'; did you mean 'กssss'?
12f4a2713aSLionel Sambuc // CHECK: {{^          \^}}
13f4a2713aSLionel Sambuc // CHECK: {{^          กssss}}
14f4a2713aSLionel Sambuc 
15f4a2713aSLionel Sambuc // CHECK: error: use of undeclared identifier 'ssกs'; did you mean 'ssกss'?
16f4a2713aSLionel Sambuc // CHECK: {{^          \^}}
17f4a2713aSLionel Sambuc // CHECK: {{^          ssกss}}
18f4a2713aSLionel Sambuc 
19f4a2713aSLionel Sambuc // CHECK: error: use of undeclared identifier 'ss一二三'; did you mean 's一二三'?
20f4a2713aSLionel Sambuc // CHECK: {{^                        \^~~~~~~~}}
21f4a2713aSLionel Sambuc // CHECK: {{^                        s一二三}}
22f4a2713aSLionel Sambuc 
23f4a2713aSLionel Sambuc // CHECK: error: use of undeclared identifier 'sssssssss'; did you mean 'sssssssssก'?
24f4a2713aSLionel Sambuc // CHECK: {{^          \^}}
25f4a2713aSLionel Sambuc // CHECK: {{^          sssssssssก}}
26