[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:
Billy Robert O'Neal III 2019-03-21 00:24:43 +00:00
parent aa40315c69
commit 277cf30d6c
6 changed files with 6 additions and 6 deletions

View File

@ -21,7 +21,7 @@
int main(int, char**) int main(int, char**)
{ {
(void)::operator new[](4); ::operator new[](4); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
return 0; return 0;
} }

View File

@ -21,7 +21,7 @@
int main(int, char**) 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; return 0;
} }

View File

@ -21,7 +21,7 @@
int main(int, char**) 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; return 0;
} }

View File

@ -21,7 +21,7 @@
int main(int, char**) 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; return 0;
} }

View File

@ -21,7 +21,7 @@
int main(int, char**) 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; return 0;
} }

View File

@ -21,7 +21,7 @@
int main(int, char**) 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; return 0;
} }