summaryrefslogtreecommitdiffstats
path: root/test/Misc/wrong-encoding.c
blob: bd1cf3dc02aec239b3807b3e0af3b2656708390a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck -strict-whitespace %s

void foo() {

  "§Ã"; // ø
// CHECK: {{^  "<A7><C3>"; // <F8>}}
// CHECK: {{^  \^}}

  /* þ« */ const char *d = "¥";

// CHECK: {{^  /\* <FE><AB> \*/ const char \*d = "<A5>";}}
// CHECK: {{^                                 \^}}

// CHECK: {{^  "<A7><C3>"; // <F8>}}
// CHECK: {{^  \^~~~~~~~~~}}
}