diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2012-05-03 16:53:59 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2012-05-03 16:53:59 +0000 |
commit | 6b9a6e390fbb92c40eb9c6ac9e7abbd88dd7a767 (patch) | |
tree | 2e51705e103e92c7be1b21e8bd8ffd5b5d0e4d52 /test/Misc | |
parent | dbe13110f59f48b4dbb7552b3ac2935acdeece7f (diff) |
Notes
Diffstat (limited to 'test/Misc')
-rw-r--r-- | test/Misc/message-length.c | 3 | ||||
-rw-r--r-- | test/Misc/pubnames.c | 19 | ||||
-rw-r--r-- | test/Misc/unprintable.c | 16 | ||||
-rw-r--r-- | test/Misc/wnull-character.cpp | bin | 0 -> 143 bytes | |||
-rw-r--r-- | test/Misc/wrong-encoding.c | 16 |
5 files changed, 33 insertions, 21 deletions
diff --git a/test/Misc/message-length.c b/test/Misc/message-length.c index 3e69b6a206ee1..a6f4f44e6b9c0 100644 --- a/test/Misc/message-length.c +++ b/test/Misc/message-length.c @@ -27,9 +27,8 @@ void a_very_long_line(int *ip, float *FloatPointer) { #pragma STDC CX_LIMITED_RANGE // some long comment text and a brace, eh {} - // CHECK: FILE:23:78 -// CHECK: {{^ ...// some long comment text and a brace, eh {} }} +// CHECK: {{^ ...// some long comment text and a brace, eh {}}} struct A { int x; }; void h(struct A *a) { diff --git a/test/Misc/pubnames.c b/test/Misc/pubnames.c deleted file mode 100644 index 03048972c0021..0000000000000 --- a/test/Misc/pubnames.c +++ /dev/null @@ -1,19 +0,0 @@ -// RUN: %clang_cc1 -pubnames-dump %s | FileCheck %s -#define FOO -#define BAR -#undef FOO -#define WIBBLE - -int foo(); -int bar(float); -int wibble; - -// CHECK: BAR -// CHECK-NOT: FOO -// CHECK: WIBBLE -// CHECK-NOT: __clang_major__ -// CHECK: bar -// CHECK: foo -// CHECK: wibble - - diff --git a/test/Misc/unprintable.c b/test/Misc/unprintable.c new file mode 100644 index 0000000000000..860503e63c39d --- /dev/null +++ b/test/Misc/unprintable.c @@ -0,0 +1,16 @@ +// RUN: %clang_cc1 %s 2>&1 | FileCheck -strict-whitespace %s + +int main() { + int i; + if((i==/*👿*/1)); + +// CHECK: {{^ if\(\(i==/\*<U\+1F47F>\*/1\)\);}} + +// CHECK: {{^ ~\^~~~~~~~~~~~~~~~}} +// CHECK: {{^ ~ \^ ~}} + + /* 👿 */ "👿berhund"; + +// CHECK: {{^ /\* <U\+1F47F> \*/ "<U\+1F47F>berhund";}} +// CHECK: {{^ \^~~~~~~~~~~~~~~~~~}} +}
\ No newline at end of file diff --git a/test/Misc/wnull-character.cpp b/test/Misc/wnull-character.cpp Binary files differnew file mode 100644 index 0000000000000..a618da272a13f --- /dev/null +++ b/test/Misc/wnull-character.cpp diff --git a/test/Misc/wrong-encoding.c b/test/Misc/wrong-encoding.c new file mode 100644 index 0000000000000..bd1cf3dc02aec --- /dev/null +++ b/test/Misc/wrong-encoding.c @@ -0,0 +1,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: {{^ \^~~~~~~~~~}} +} |