@@ -414,18 +414,21 @@ TEST_F(ConstantFPRangeTest, Print) {
414
414
#ifdef GTEST_HAS_DEATH_TEST
415
415
#ifndef NDEBUG
416
416
TEST_F (ConstantFPRangeTest, NonCanonicalEmptySet) {
417
- EXPECT_DEATH (ConstantFPRange::getNonNaN (APFloat (1.0 ), APFloat (0.0 )),
417
+ EXPECT_DEATH (( void )( ConstantFPRange::getNonNaN (APFloat (1.0 ), APFloat (0.0 ) )),
418
418
" Non-canonical form" );
419
419
}
420
420
TEST_F (ConstantFPRangeTest, MismatchedSemantics) {
421
- EXPECT_DEATH (ConstantFPRange::getNonNaN (APFloat (0.0 ), APFloat (1 .0f )),
421
+ EXPECT_DEATH (( void )( ConstantFPRange::getNonNaN (APFloat (0.0 ), APFloat (1 .0f ) )),
422
422
" Should only use the same semantics" );
423
- EXPECT_DEATH (One.contains (APFloat (1 .0f )),
423
+ EXPECT_DEATH (( void )( One.contains (APFloat (1 .0f ) )),
424
424
" Should only use the same semantics" );
425
425
ConstantFPRange OneF32 = ConstantFPRange (APFloat (1 .0f ));
426
- EXPECT_DEATH (One.contains (OneF32), " Should only use the same semantics" );
427
- EXPECT_DEATH (One.intersectWith (OneF32), " Should only use the same semantics" );
428
- EXPECT_DEATH (One.unionWith (OneF32), " Should only use the same semantics" );
426
+ EXPECT_DEATH ((void )(One.contains (OneF32)),
427
+ " Should only use the same semantics" );
428
+ EXPECT_DEATH ((void )(One.intersectWith (OneF32)),
429
+ " Should only use the same semantics" );
430
+ EXPECT_DEATH ((void )(One.unionWith (OneF32)),
431
+ " Should only use the same semantics" );
429
432
}
430
433
#endif
431
434
#endif
0 commit comments