view undefined/float_literal_01_C.d @ 1586:a74f0139fc3d

Fix tests using typeof on types.
author Christian Kamm <kamm incasoftware de>
date Thu, 21 Aug 2008 15:42:21 +0200
parents b0dd3e91e54b
children
line wrap: on
line source

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

// @author@	Unknown W. Brackets <unknown@simplemachines.org>
// @date@	2006-03-04
// @uri@	news:dud1s0$icq$1@digitaldaemon.com

module dstress.undefined.float_literal_01_C;

int _;

void main(){
	static if(is(typeof(_.) == double)){
		pragma(msg, "lex.html#floatliteral");
	}else{
		pragma(msg, "should fail to compile");
	}
}