[libcxx] [test] Revert r356632 add (void) casts to operator new calls, to suppress warnings generated by [[nodiscard]]."
llvm-svn: 356635
This commit is contained in:
parent
aa40315c69
commit
277cf30d6c
|
@ -21,7 +21,7 @@
|
|||
|
||||
int main(int, char**)
|
||||
{
|
||||
(void)::operator new[](4);
|
||||
::operator new[](4); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
int main(int, char**)
|
||||
{
|
||||
(void)::operator new[](4, std::align_val_t{4});
|
||||
::operator new[](4, std::align_val_t{4}); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
int main(int, char**)
|
||||
{
|
||||
(void)::operator new[](4, std::align_val_t{4}, std::nothrow);
|
||||
::operator new[](4, std::align_val_t{4}, std::nothrow); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
int main(int, char**)
|
||||
{
|
||||
(void)::operator new[](4, std::nothrow);
|
||||
::operator new[](4, std::nothrow); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
int main(int, char**)
|
||||
{
|
||||
(void)::operator new(4, std::align_val_t{4});
|
||||
::operator new(4, std::align_val_t{4}); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
int main(int, char**)
|
||||
{
|
||||
(void)::operator new(4, std::align_val_t{4}, std::nothrow);
|
||||
::operator new(4, std::align_val_t{4}, std::nothrow); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue