view run/InExpression_12.d @ 570:32f7f8ce5e51

updated "===" -> "is" and "!==" to "!(...===...)"
author thomask
date Wed, 08 Jun 2005 17:49:15 +0000
parents da000f026b76
children
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

module dstress.run.InExpression_12;

struct MyStruct{
	int i;
	char c;
}

int main(){
	MyStruct value;
	char[] key = "eins";
	MyStruct[char[]] array;
	
	array[key]=value;
	MyStruct* ptr = "zwei" in array;
	
	assert(ptr is null);

	return 0;
}