silence new -Wunused-result warnings in test

No functional changes intended.

After f156b51aec,
new -Wunused-result warnings popped up in this test:
https://buildkite.com/llvm-project/upstream-bazel/builds/28320#bc3ec049-af39-4114-b7b8-4cbc180bc09b
This commit is contained in:
Krasimir Georgiev 2022-05-12 08:30:36 +02:00
parent 1155c1fe65
commit 52328dafda
1 changed files with 3 additions and 3 deletions

View File

@ -66,9 +66,9 @@ TEST(ExtensibleRTTI, cast) {
MyDerivedType D;
MyBaseType &BD = D;
cast<MyBaseType>(D);
cast<MyBaseType>(BD);
cast<MyDerivedType>(BD);
(void)cast<MyBaseType>(D);
(void)cast<MyBaseType>(BD);
(void)cast<MyDerivedType>(BD);
}
TEST(ExtensibleRTTI, dyn_cast) {