summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-05-17 16:19:35 +0200
committerTycho <work.tycho+git@gmail.com>2014-05-17 16:19:35 +0200
commit016b8f7b993624a96f040e5d1b5e8564369b62f7 (patch)
tree7d9d448f5ca200dc3750ad863c88ad479d4fb7f2 /tests
parentfixed assignment bugs and Skylight bug (diff)
downloadcuberite-016b8f7b993624a96f040e5d1b5e8564369b62f7.tar
cuberite-016b8f7b993624a96f040e5d1b5e8564369b62f7.tar.gz
cuberite-016b8f7b993624a96f040e5d1b5e8564369b62f7.tar.bz2
cuberite-016b8f7b993624a96f040e5d1b5e8564369b62f7.tar.lz
cuberite-016b8f7b993624a96f040e5d1b5e8564369b62f7.tar.xz
cuberite-016b8f7b993624a96f040e5d1b5e8564369b62f7.tar.zst
cuberite-016b8f7b993624a96f040e5d1b5e8564369b62f7.zip
Diffstat (limited to '')
-rw-r--r--tests/ChunkBuffer/Coordinates.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ChunkBuffer/Coordinates.cpp b/tests/ChunkBuffer/Coordinates.cpp
index 9eb30fa0a..bed61d5dc 100644
--- a/tests/ChunkBuffer/Coordinates.cpp
+++ b/tests/ChunkBuffer/Coordinates.cpp
@@ -125,9 +125,17 @@ int main(int argc, char** argv)
cChunkBuffer buffer;
buffer.SetBlock(0,0,0,0x42);
cChunkBuffer copy;
+ #if __cplusplus < 201103L
+ copy = buffer;
+ #else
copy = std::move(buffer);
+ #endif
testassert(copy.GetBlock(0,0,0) == 0x42);
+ #if __cplusplus < 201103L
+ copy = copy;
+ #else
copy = std::move(copy);
+ #endif
testassert(copy.GetBlock(0,0,0) == 0x42);
}