summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libcxx/test/std/depr/depr.str.strstreams/depr.strstream/depr.strstream.cons/default.pass.cpp3
-rw-r--r--libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.virtuals/streambuf.virt.get/xsgetn.pass.cpp3
-rw-r--r--libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.virtuals/streambuf.virt.put/xsputn.pass.cpp3
-rw-r--r--libcxx/test/std/language.support/support.rtti/type.info/type_info.pass.cpp4
4 files changed, 8 insertions, 5 deletions
diff --git a/libcxx/test/std/depr/depr.str.strstreams/depr.strstream/depr.strstream.cons/default.pass.cpp b/libcxx/test/std/depr/depr.str.strstreams/depr.strstream/depr.strstream.cons/default.pass.cpp
index a1251ae58e1..ff68a3d1d8b 100644
--- a/libcxx/test/std/depr/depr.str.strstreams/depr.strstream/depr.strstream.cons/default.pass.cpp
+++ b/libcxx/test/std/depr/depr.str.strstreams/depr.strstream/depr.strstream.cons/default.pass.cpp
@@ -14,6 +14,7 @@
#include <strstream>
#include <cassert>
+#include <cstring>
#include <string>
int main()
@@ -30,6 +31,6 @@ int main()
inout >> i >> d >> s;
assert(i == 123);
assert(d == 4.5);
- assert(strcmp(s.c_str(), "dog") == 0);
+ assert(std::strcmp(s.c_str(), "dog") == 0);
inout.freeze(false);
}
diff --git a/libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.virtuals/streambuf.virt.get/xsgetn.pass.cpp b/libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.virtuals/streambuf.virt.get/xsgetn.pass.cpp
index 20e785383cb..7c5f6b9d6fe 100644
--- a/libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.virtuals/streambuf.virt.get/xsgetn.pass.cpp
+++ b/libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.virtuals/streambuf.virt.get/xsgetn.pass.cpp
@@ -15,6 +15,7 @@
#include <streambuf>
#include <cassert>
+#include <cstring>
struct test
: public std::basic_streambuf<char>
@@ -36,5 +37,5 @@ int main()
t.setg(input, input, input+7);
char output[sizeof(input)] = {0};
assert(t.sgetn(output, 10) == 7);
- assert(strcmp(input, output) == 0);
+ assert(std::strcmp(input, output) == 0);
}
diff --git a/libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.virtuals/streambuf.virt.put/xsputn.pass.cpp b/libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.virtuals/streambuf.virt.put/xsputn.pass.cpp
index 728697f7c99..15d37404122 100644
--- a/libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.virtuals/streambuf.virt.put/xsputn.pass.cpp
+++ b/libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.virtuals/streambuf.virt.put/xsputn.pass.cpp
@@ -15,6 +15,7 @@
#include <streambuf>
#include <cassert>
+#include <cstring>
struct test
: public std::basic_streambuf<char>
@@ -38,6 +39,6 @@ int main()
char out[sizeof(in)] = {0};
t.setp(out, out+sizeof(out));
assert(t.sputn(in, sizeof(in)) == sizeof(in));
- assert(strcmp(in, out) == 0);
+ assert(std::strcmp(in, out) == 0);
}
}
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
OpenPOWER on IntegriCloud