mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
Merge remote-tracking branch 'origin/stable' into merge_stable
Conflicts: compiler/src/build.d compiler/src/dmd/dcast.d compiler/src/dmd/dtemplate.d compiler/src/dmd/expressionsem.d
This commit is contained in:
commit
72b2fbe64a
14 changed files with 108 additions and 36 deletions
|
@ -5,9 +5,14 @@ class Foo
|
|||
{
|
||||
}
|
||||
|
||||
shared Foo toLoad;
|
||||
|
||||
void oops()
|
||||
{
|
||||
auto f0 = new shared Foo;
|
||||
auto f1 = new shared Foo;
|
||||
atomicStore(f0, f1);
|
||||
|
||||
// https://issues.dlang.org/show_bug.cgi?id=24846
|
||||
shared(Foo) f2 = atomicLoad(toLoad);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue