[Support] Fix an invalid character escaping in string literal (unittest).
authorEtienne Bergeron <etienneb@google.com>
Tue, 5 Apr 2016 01:46:26 +0000 (01:46 +0000)
committerEtienne Bergeron <etienneb@google.com>
Tue, 5 Apr 2016 01:46:26 +0000 (01:46 +0000)
commit1562f69febe074859bf29703587e5cfac7d119fa
tree578b08d54ba160097e97af36f9bbac2e9fd86e6d
parent009ec085db1f1a6d1f17149cca0e67eefd63397c
[Support] Fix an invalid character escaping in string literal (unittest).

Summary:
A character within a string literal is not escaped correctly.
In this case, there is no semantic change because the invalid character turn out to be NUL anyway.

note: "\0x12" is equivalent to {0, 'x', '1', '2'} and not { 12 }.

This issue was found by clang-tidy.

Reviewers: rnk

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D18747

llvm-svn: 265376
llvm/unittests/Support/Path.cpp