mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-03 02:53:13 +01: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:
13
tests/mini/sync2.d
Normal file
13
tests/mini/sync2.d
Normal file
@@ -0,0 +1,13 @@
|
||||
module tangotests.sync2;
|
||||
|
||||
class Lock
|
||||
{
|
||||
}
|
||||
|
||||
Lock lock;
|
||||
|
||||
void main()
|
||||
{
|
||||
size_t id;
|
||||
synchronized(lock) id = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user