mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-25 16:45:21 +02:00
Pointer comparisons were being treated as signed integers. Now they are handled as unsigned integers.
This commit is contained in:
8
tests/mini/ptrcond.d
Normal file
8
tests/mini/ptrcond.d
Normal file
@@ -0,0 +1,8 @@
|
||||
module mini.ptrcond;
|
||||
|
||||
void main()
|
||||
{
|
||||
char[4]* cp;
|
||||
void* vp = &cp;
|
||||
assert(cp < vp);
|
||||
}
|
||||
Reference in New Issue
Block a user