[libcxx] r216318 - Fix assignments that should be comparisons x3
Eric Fiselier
eric at efcs.ca
Sat Aug 23 00:55:29 PDT 2014
Author: ericwf
Date: Sat Aug 23 02:55:29 2014
New Revision: 216318
URL: http://llvm.org/viewvc/llvm-project?rev=216318&view=rev
Log:
Fix assignments that should be comparisons x3
Modified:
libcxx/trunk/test/input.output/iostream.format/input.streams/istream.unformatted/sync.pass.cpp
libcxx/trunk/test/utilities/memory/pointer.traits/pointer.traits.functions/pointer_to.pass.cpp
libcxx/trunk/test/utilities/memory/pointer.traits/pointer_to.pass.cpp
Modified: libcxx/trunk/test/input.output/iostream.format/input.streams/istream.unformatted/sync.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/input.output/iostream.format/input.streams/istream.unformatted/sync.pass.cpp?rev=216318&r1=216317&r2=216318&view=diff
==============================================================================
--- libcxx/trunk/test/input.output/iostream.format/input.streams/istream.unformatted/sync.pass.cpp (original)
+++ libcxx/trunk/test/input.output/iostream.format/input.streams/istream.unformatted/sync.pass.cpp Sat Aug 23 02:55:29 2014
@@ -53,12 +53,12 @@ int main()
testbuf<char> sb(" 123456789");
std::istream is(&sb);
assert(is.sync() == 0);
- assert(sync_called = 1);
+ assert(sync_called == 1);
}
{
testbuf<wchar_t> sb(L" 123456789");
std::wistream is(&sb);
assert(is.sync() == 0);
- assert(sync_called = 2);
+ assert(sync_called == 2);
}
}
Modified: libcxx/trunk/test/utilities/memory/pointer.traits/pointer.traits.functions/pointer_to.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/memory/pointer.traits/pointer.traits.functions/pointer_to.pass.cpp?rev=216318&r1=216317&r2=216318&view=diff
==============================================================================
--- libcxx/trunk/test/utilities/memory/pointer.traits/pointer.traits.functions/pointer_to.pass.cpp (original)
+++ libcxx/trunk/test/utilities/memory/pointer.traits/pointer.traits.functions/pointer_to.pass.cpp Sat Aug 23 02:55:29 2014
@@ -40,7 +40,7 @@ int main()
{
int i = 0;
A<int> a = std::pointer_traits<A<int> >::pointer_to(i);
- assert(a.t_ = &i);
+ assert(a.t_ == &i);
}
{
(std::pointer_traits<A<void> >::element_type)0;
Modified: libcxx/trunk/test/utilities/memory/pointer.traits/pointer_to.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/memory/pointer.traits/pointer_to.pass.cpp?rev=216318&r1=216317&r2=216318&view=diff
==============================================================================
--- libcxx/trunk/test/utilities/memory/pointer.traits/pointer_to.pass.cpp (original)
+++ libcxx/trunk/test/utilities/memory/pointer.traits/pointer_to.pass.cpp Sat Aug 23 02:55:29 2014
@@ -24,7 +24,7 @@ int main()
{
int i = 0;
int* a = std::pointer_traits<int*>::pointer_to(i);
- assert(a = &i);
+ assert(a == &i);
}
{
(std::pointer_traits<void*>::element_type)0;
More information about the cfe-commits
mailing list