view compile/c/const_42_B.d @ 1597:8b9d4d2f925a

Fix typos in complex tests. See D bug 614.
author Christian Kamm <kamm incasoftware de>
date Tue, 09 Sep 2008 16:53:58 +0200
parents fab5c8b013c2
children
line wrap: on
line source

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

// @author@	Don Clugston <clugdbug@yahoo.com.au>
// @date@	2006-05-30
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=165
// @desc@	[Issue 165] type inference fails with sizeof and circular imports

// __DSTRESS_DFLAGS__ compile/c/const_42_A.d

module /*dstress.*/compile.c.const_42_B;
import /*dstress.*/compile.c.const_42_A;

struct dog {
	wolf donkey;
	struct sheep {
		char pig;
	}
}

const X = dog.sheep.pig.sizeof;

static assert(is(typeof(X) == typeof(char.sizeof)));
static assert(X == char.sizeof);