Mercurial > projects > dstress
view undefined/typedef_10_H.d @ 944:eb7e3f644b18
Stewart Gordon <smjg_1998@yahoo.com>
2006-03-27
news:e08emq$n8l$1@digitaldaemon.com
author | thomask |
---|---|
date | Sun, 02 Apr 2006 11:53:50 +0000 |
parents | 47da30a67c8d |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Stewart Gordon <smjg_1998@yahoo.com> // @date@ 2005-12-12 // @uri@ news:dnjnqe$16sv$1@digitaldaemon.com module dstress.undefined.typedef_10_H; /* When typedefs are arithmetically combined, what should be the type of the * result? The spec gives no indication. This testcase asserts the way I * feel it should be. (Stewart Gordon) */ typedef int Int; int main() { Int i; short s; static assert (is(typeof(i + s) == int)); return 0; }