Alexander Kornienko | 48c9900 | 2013-09-11 18:10:30 +0000 | [diff] [blame] | 1 | // This test is an additional set of checks for the fixit-unicode.c test for |
| 2 | // systems capable of outputting Unicode characters to the standard output in |
| 3 | // the UTF-8 encoding. |
Alexander Kornienko | 48c9900 | 2013-09-11 18:10:30 +0000 | [diff] [blame] | 4 | // RUN: not %clang_cc1 -fsyntax-only %S/fixit-unicode.c 2>&1 | FileCheck -strict-whitespace %s |
NAKAMURA Takumi | 0c81c71 | 2014-02-06 07:15:59 +0000 | [diff] [blame] | 5 | // REQUIRES: utf8-capable-terminal |
Alexander Kornienko | 48c9900 | 2013-09-11 18:10:30 +0000 | [diff] [blame] | 6 | |
| 7 | // CHECK: warning: format specifies type 'int' but the argument has type 'long' |
| 8 | // CHECK: {{^ printf\("∆: %d", 1L\);}} |
| 9 | // CHECK: {{^ ~~ \^~}} |
| 10 | |
| 11 | // CHECK: error: use of undeclared identifier 'กsss'; did you mean 'กssss'? |
| 12 | // CHECK: {{^ \^}} |
| 13 | // CHECK: {{^ กssss}} |
| 14 | |
| 15 | // CHECK: error: use of undeclared identifier 'ssกs'; did you mean 'ssกss'? |
| 16 | // CHECK: {{^ \^}} |
| 17 | // CHECK: {{^ ssกss}} |
| 18 | |
| 19 | // CHECK: error: use of undeclared identifier 'ss一二三'; did you mean 's一二三'? |
| 20 | // CHECK: {{^ \^~~~~~~~}} |
| 21 | // CHECK: {{^ s一二三}} |
| 22 | |
| 23 | // CHECK: error: use of undeclared identifier 'sssssssss'; did you mean 'sssssssssก'? |
| 24 | // CHECK: {{^ \^}} |
| 25 | // CHECK: {{^ sssssssssก}} |