summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSeth Cantrell <seth.cantrell@gmail.com>2012-04-17 20:59:59 +0000
committerSeth Cantrell <seth.cantrell@gmail.com>2012-04-17 20:59:59 +0000
commit9591697707c69af99bb196d70895f4e7e28be333 (patch)
tree8c8adf915a7295d572db3b73bcc2db6bad2a0442 /test
parente1a6eacdc01db5015f6add2b0155273d174ddc6b (diff)
downloadclang-9591697707c69af99bb196d70895f4e7e28be333.tar.gz
Revert "Nicer display of unprintable source, and fix caret display for non-ascii text"
This reverts commit e9a3b76ba589a8a884e978273beaed0d97cf9861. Revert "fix display of source lines with null characters" This reverts commit 70712b276e40bbe11e5063dfc7e82ce3209929cd. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154950 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Misc/message-length.c3
-rw-r--r--test/Misc/unprintable.c16
-rw-r--r--test/Misc/wnull-character.cppbin143 -> 0 bytes
-rw-r--r--test/Misc/wrong-encoding.c16
4 files changed, 2 insertions, 33 deletions
diff --git a/test/Misc/message-length.c b/test/Misc/message-length.c
index a6f4f44e6b..3e69b6a206 100644
--- a/test/Misc/message-length.c
+++ b/test/Misc/message-length.c
@@ -27,8 +27,9 @@ 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/unprintable.c b/test/Misc/unprintable.c
deleted file mode 100644
index 860503e63c..0000000000
--- a/test/Misc/unprintable.c
+++ /dev/null
@@ -1,16 +0,0 @@
-// 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
deleted file mode 100644
index a618da272a..0000000000
--- a/test/Misc/wnull-character.cpp
+++ /dev/null
Binary files differ
diff --git a/test/Misc/wrong-encoding.c b/test/Misc/wrong-encoding.c
deleted file mode 100644
index bd1cf3dc02..0000000000
--- a/test/Misc/wrong-encoding.c
+++ /dev/null
@@ -1,16 +0,0 @@
-// 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: {{^ \^~~~~~~~~~}}
-}