Mercurial > projects > dstress
view run/t/typeinfo_03_A.d @ 1513:45c339264b57
[Issue 1125] Segfault using tuple in asm code, when size not specified
Don Clugston <clugdbug@yahoo.com.au>
2007-04-11
http://d.puremagic.com/issues/show_bug.cgi?id=1125
author | thomask |
---|---|
date | Mon, 23 Apr 2007 18:09:16 +0000 |
parents | 6666662e4363 |
children | b5c0842014ef |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Madeleine Freudenberg <madou@madou.org> // @date@ 2007-04-01 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1089 // @desc@ [Issue 1089] Unsafe pointer comparison in TypeInfo_Pointer.compare module dstress.run.t.typeinfo_03_A; int main(){ TypeInfo_Pointer t = new TypeInfo_Pointer(); t.m_next = typeid(int); int* a = new int; int* b = new int; *a = -10; *b = 10; if(-1 < t.compare(a, b)){ assert(0); } if(t.compare(b, a) < 1){ assert(0); } return 0; }