//Purpose: // Show example of strict alias rule violation. // #include template struct str { char val[Size]; ~str(void) {} }; int main(void) { char buf[sizeof(str<20>)]; void*p=buf; str<20>* p20=new(buf) str<20>; p20->~str(); str<10>* p10=new(buf) str<10>; return p20->val==p10->val; }