c++11 test case fixes
This commit is contained in:
parent
9244621827
commit
5a282f3ac3
2 changed files with 3 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ struct NoExceptClass {
|
||||||
NoExceptClass() noexcept {}
|
NoExceptClass() noexcept {}
|
||||||
NoExceptClass(const NoExceptClass&) noexcept {}
|
NoExceptClass(const NoExceptClass&) noexcept {}
|
||||||
NoExceptClass(NoExceptClass&&) noexcept {}
|
NoExceptClass(NoExceptClass&&) noexcept {}
|
||||||
NoExceptClass& operator=(const NoExceptClass&) noexcept {}
|
NoExceptClass& operator=(const NoExceptClass&) noexcept { return *this; }
|
||||||
~NoExceptClass() noexcept {}
|
~NoExceptClass() noexcept {}
|
||||||
|
|
||||||
void noex0() noexcept {}
|
void noex0() noexcept {}
|
||||||
|
|
|
||||||
|
|
@ -31,12 +31,13 @@ struct Thingy {
|
||||||
// test both primitive and user defined rvalue reference default arguments and compactdefaultargs
|
// test both primitive and user defined rvalue reference default arguments and compactdefaultargs
|
||||||
void compactDefaultArgs(const bool &&b = (const bool &&)PublicGlobalTrue, const UserDef &&u = (const UserDef &&)PublicUserDef) {}
|
void compactDefaultArgs(const bool &&b = (const bool &&)PublicGlobalTrue, const UserDef &&u = (const UserDef &&)PublicUserDef) {}
|
||||||
void privateDefaultArgs(const bool &&b = (const bool &&)PrivateTrue) {}
|
void privateDefaultArgs(const bool &&b = (const bool &&)PrivateTrue) {}
|
||||||
operator int &&() {}
|
operator int &&() { return std::move(0); }
|
||||||
Thingy(const Thingy& rhs) : val(rhs.val), lvalref(rhs.lvalref), rvalref(copy_int(rhs.rvalref)) {}
|
Thingy(const Thingy& rhs) : val(rhs.val), lvalref(rhs.lvalref), rvalref(copy_int(rhs.rvalref)) {}
|
||||||
Thingy& operator=(const Thingy& rhs) {
|
Thingy& operator=(const Thingy& rhs) {
|
||||||
val = rhs.val;
|
val = rhs.val;
|
||||||
lvalref = rhs.lvalref;
|
lvalref = rhs.lvalref;
|
||||||
rvalref = rhs.rvalref;
|
rvalref = rhs.rvalref;
|
||||||
|
return *this;
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
static const bool PrivateTrue;
|
static const bool PrivateTrue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue