minix/external/bsd/llvm/dist/clang/test/Misc/wrong-encoding.c
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

39 lines
965 B
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// RUN: %clang_cc1 -fsyntax-only -Wno-unused-value %s 2>&1 | FileCheck -strict-whitespace %s
// REQUIRES: asserts
void foo() {
"§Ã"; // ø
// CHECK: {{^ "<A7><C3>"; // <F8>}}
// CHECK: {{^ \^~~~~~~}}
/* þ« */ const char *d = "¥";
// CHECK: {{^ /\* <FE><AB> \*/ const char \*d = "<A5>";}}
// CHECK: {{^ \^~~~}}
"xxé¿¿¿d";
// CHECK: {{^ "xx<U\+9FFF><BF>d";}}
// CHECK: {{^ \^~~~}}
"xxé¿bcd";
// CHECK: {{^ "xx<E9><BF>bcd";}}
// CHECK: {{^ \^~~~~~~~}}
"xxéabcd";
// CHECK: {{^ "xx<E9>abcd";}}
// CHECK: {{^ \^~~~}}
"xxé¿é¿d";
// CHECK: {{^ "xx<E9><BF><E9><BF>d";}}
// CHECK: {{^ \^~~~~~~~~~~~~~~}}
"xxé¿xxxxxxxxxxxxxxxxxxxxxé¿xx";
// CHECK: {{^ "xx<E9><BF>xxxxxxxxxxxxxxxxxxxxx<E9><BF>xx";}}
// CHECK: {{^ \^~~~~~~~ ~~~~~~~~}}
"<EFBFBD>?kÍS¥ÇØg<C398>7†, 2,Díu„†*É,pûäÚ&”‰(<28>K§:Ñ'1áÎjOÅ°<:";
"xé¿xé¿xé¿xé¿xé¿xé¿xé¿xé¿xé¿xé¿xé¿xé¿x";
}
// CHECK-NOT:Assertion