diff options
| author | Louis Dionne <ldionne@apple.com> | 2019-01-22 17:45:00 +0000 |
|---|---|---|
| committer | Louis Dionne <ldionne@apple.com> | 2019-01-22 17:45:00 +0000 |
| commit | 53e8ece06a137906a302ee89e5dbceb68b7605bb (patch) | |
| tree | 075b5fb8b7e07f623ae77ca4905981e652e26240 /libcxx/test/std/language.support | |
| parent | 4e9db1beff1cb17d7121e66c0257fa0e68fe20b6 (diff) | |
| download | bcm5719-llvm-53e8ece06a137906a302ee89e5dbceb68b7605bb.tar.gz bcm5719-llvm-53e8ece06a137906a302ee89e5dbceb68b7605bb.zip | |
[libcxx] Include <cstring> in tests that use strcmp
Reviewed as https://reviews.llvm.org/D56503.
Thanks to Andrey Maksimov for the patch.
llvm-svn: 351847
Diffstat (limited to 'libcxx/test/std/language.support')
| -rw-r--r-- | libcxx/test/std/language.support/support.rtti/type.info/type_info.pass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/std/language.support/support.rtti/type.info/type_info.pass.cpp b/libcxx/test/std/language.support/support.rtti/type.info/type_info.pass.cpp index d0a6a0fd622..fec07526a2e 100644 --- a/libcxx/test/std/language.support/support.rtti/type.info/type_info.pass.cpp +++ b/libcxx/test/std/language.support/support.rtti/type.info/type_info.pass.cpp @@ -25,8 +25,8 @@ int main() const std::type_info& t3 = typeid(short); assert(t1 != t3); assert(!t1.before(t2)); - assert(strcmp(t1.name(), t2.name()) == 0); - assert(strcmp(t1.name(), t3.name()) != 0); + assert(std::strcmp(t1.name(), t2.name()) == 0); + assert(std::strcmp(t1.name(), t3.name()) != 0); } { // type_info has a protected constructor taking a string literal. This |

