Dtor(Ctor *i) {
    Dtor();
// CHECK-MESSAGES: :[[@LINE-1]]:5: warning: did you intend to call a delegated constructor?
    Dtor(0);
// CHECK-MESSAGES: :[[@LINE-1]]:5: warning: did you intend to call a delegated constructor?
    Dtor(1, 2);
// CHECK-MESSAGES: :[[@LINE-1]]:5: warning: did you intend to call a delegated constructor?
  }
 void Release(nsrefcnt refcnt) {
   mNewStats.mReleases++;
   if (refcnt == 0) {
     Dtor();
   }
   AccountRefs();
 }
Ejemplo n.º 3
0
 void testLambdas() {
   []() { check(NoReturnDtor()); } != nullptr || check(Dtor());
 }