summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-strings/negative-char.test
diff options
context:
space:
mode:
authorJordan Rupprecht <rupprecht@google.com>2018-11-09 18:03:21 +0000
committerJordan Rupprecht <rupprecht@google.com>2018-11-09 18:03:21 +0000
commitdcf1f8e7169285486d00409484a2a9b0ee14eb6d (patch)
treef38edb7b09e8cfcd931140c6213025de5d760156 /llvm/test/tools/llvm-strings/negative-char.test
parent13d3371e687a44b4fd2d19107c95efdb3da9088c (diff)
downloadbcm5719-llvm-dcf1f8e7169285486d00409484a2a9b0ee14eb6d.tar.gz
bcm5719-llvm-dcf1f8e7169285486d00409484a2a9b0ee14eb6d.zip
[llvm-strings] Fix whitespaces to match strings output.
Summary: The current implementation prepends a space on every line, making it difficult to compare against GNU strings. The space appears to have come from handling --radix in rL292707. The space is for making sure there's a space between the radix and the value; however the space is still emitted even when there is no radix. This change fixes that so the space is only emitted when there is a radix. Reviewers: jhenderson Reviewed By: jhenderson Subscribers: llvm-commits, compnerd Differential Revision: https://reviews.llvm.org/D54238 llvm-svn: 346529
Diffstat (limited to 'llvm/test/tools/llvm-strings/negative-char.test')
-rw-r--r--llvm/test/tools/llvm-strings/negative-char.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/tools/llvm-strings/negative-char.test b/llvm/test/tools/llvm-strings/negative-char.test
index 331dde47078..e91dcda0cca 100644
--- a/llvm/test/tools/llvm-strings/negative-char.test
+++ b/llvm/test/tools/llvm-strings/negative-char.test
@@ -1,3 +1,3 @@
# RUN: echo -e "z\0\x80\0a\0" | llvm-strings --bytes 1 - | FileCheck %s
# CHECK: z{{$}}
-# CHECK-NEXT: {{^}} a
+# CHECK-NEXT: {{^}}a
OpenPOWER on IntegriCloud