Home | History | Annotate | Download | only in test

Lines Matching defs:sideeffect

191 int DieInDebugElse12(int* sideeffect) {
192 if (sideeffect) *sideeffect = 12;
558 int sideeffect = 0;
560 EXPECT_DEBUG_DEATH(DieInDebugElse12(&sideeffect),
564 // Checks that the assignment occurs in opt mode (sideeffect).
565 EXPECT_EQ(12, sideeffect);
567 // Checks that the assignment does not occur in dbg mode (no sideeffect).
568 EXPECT_EQ(0, sideeffect);
580 int sideeffect = 0;
584 EXPECT_EQ(12, DieInDebugElse12(&sideeffect));
586 EXPECT_EQ(12, sideeffect);
590 // Checks that the assignment occurs in opt mode (sideeffect).
591 EXPECT_EQ(12, sideeffect);
593 // Checks that the assignment does not occur in dbg mode (no sideeffect).
594 EXPECT_EQ(0, sideeffect);