mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
25
build/clang-plugin/tests/TestNoExplicitMoveConstructor.cpp
Normal file
25
build/clang-plugin/tests/TestNoExplicitMoveConstructor.cpp
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
class Foo {
|
||||
Foo(Foo&& f);
|
||||
};
|
||||
|
||||
class Bar {
|
||||
explicit Bar(Bar&& f); // expected-error {{Move constructors may not be marked explicit}}
|
||||
};
|
||||
|
||||
class Baz {
|
||||
template<typename T>
|
||||
explicit Baz(T&& f) {};
|
||||
};
|
||||
|
||||
class Quxx {
|
||||
Quxx();
|
||||
Quxx(Quxx& q) = delete;
|
||||
template<typename T>
|
||||
explicit Quxx(T&& f) {};
|
||||
};
|
||||
|
||||
void f() {
|
||||
// Move a quxx into a quxx! (This speciailizes Quxx's constructor to look like
|
||||
// a move constructor - to make sure it doesn't trigger)
|
||||
Quxx(Quxx());
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue