Seperate out async moves into a separate test
This commit is contained in:
parent
5b1b1dbcb4
commit
b2ae317877
17
unittests/move_async.chai
Normal file
17
unittests/move_async.chai
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
load_module("stl_extra")
|
||||||
|
|
||||||
|
auto x = List()
|
||||||
|
// push_back newly constructed return value that's non-copyable
|
||||||
|
x.push_front(async(fun(){}))
|
||||||
|
|
||||||
|
// push_front newly constructed return value that's non-copyable
|
||||||
|
x.push_front(async(fun(){}))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// push_back newly constructed return value that's non-copyable
|
||||||
|
|
||||||
|
var v = []
|
||||||
|
v.push_back(async(fun(){}))
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user