1 // RUN: clang-cc %s -emit-llvm -o %t
3 extern "C" int printf(...);
8 B() : iB(++val) { printf("B()\n"); }
10 ~B() { printf("~B(%d)\n", iB); --val; }
14 M() : iM(++val) { printf("M()\n"); }
16 ~M() { printf("~M(%d)\n", iM); --val; }
20 P() : iP(++val) { printf("P()\n"); }
22 ~P() { printf("~P(%d)\n", iP); --val; }
26 N() { printf("N()\n"); iN = ++val; }
27 ~N() { printf("~N(%d) val = %d\n", iN, --val); }