void main(){char * data;char * &data_ref=data;data=NULL;{char mystring[]="mystring";data=strdup(mystring);}{char * data=data_ref;delete [] data;}}
static void main(){char * data;char * &data_ref=data;data=NULL;data=new char[100];{char * data=data_ref;delete [] data;}}