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