1 // RUN: %clang_cc1 %s -emit-llvm -o %t
3 extern "C" int printf(...);
8 void MPR() { printf("iM = %d\n", iM
); }
15 void QPR() { printf("iQ = %d\n", iQ
); }
19 IQ(int i
) { iIQ
= i
; }
20 void IQPR() { printf("iIQ = %d\n", iIQ
); }
25 L(int i
) : IQ(i
+100) { iL
= i
; }
30 P(int i
) : Q(i
+100), L(i
+200) { iP
= i
; }
32 void PPR() { printf("iP = %d\n", iP
); }
37 N() : M(100), P(200) {}
39 this->MPR(); this->PPR(); this->QPR();
41 printf("iM = %d\n", iM
);
42 printf("iP = %d\n", iP
);
43 printf("iQ = %d\n", iQ
);
44 printf("iL = %d\n", iL
);
45 printf("iIQ = %d\n", iIQ
);