mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-26 13:39:08 +02:00
[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
This commit is contained in:
11
tests/mini/bug80.d
Normal file
11
tests/mini/bug80.d
Normal file
@@ -0,0 +1,11 @@
|
||||
module bug80;
|
||||
extern(C) int printf(char*, ...);
|
||||
|
||||
void main()
|
||||
{
|
||||
byte b = 10;
|
||||
int i = b += 2;
|
||||
printf("byte=%d int=%d\n", b, i);
|
||||
assert(b == 12);
|
||||
assert(i == 12);
|
||||
}
|
||||
Reference in New Issue
Block a user