Lines Matching defs:num_destructions
306 explicit DestructorCountingCostFunction(int *num_destructions)
307 : num_destructions_(num_destructions) {}
325 int num_destructions = 0;
334 CostFunction* cost = new DestructorCountingCostFunction(&num_destructions);
342 CHECK_EQ(num_destructions, 1);
347 int num_destructions = 0;
354 new DestructorCountingCostFunction(&num_destructions);
356 new DestructorCountingCostFunction(&num_destructions);
363 CHECK_EQ(num_destructions, 0);
365 CHECK_EQ(num_destructions, 0);
369 CHECK_EQ(num_destructions, 2);