1 // GROUPS passed destructors
10 inline bla(char * jim) { ; };
12 inline ~bla() { destruct++; if (destruct == 2) printf ("PASS\n");};
22 void funk(const bla & bob) { ;};
23 // ^ interestingly, the code compiles right if
24 // this & is deleted (and therefore the parameter
32 dumm.funk(bla("laberababa")); // this compiles correctly
34 dumm.funk((bla)"laberababa"); // this produces incorrect code -
35 // the temporary instance of
36 // the class "bla" is constructed
37 // but never destructed...