mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
10 lines
258 B
D
10 lines
258 B
D
// REQUIRED_ARGS: -O
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=14114
|
|
|
|
import core.volatile;
|
|
|
|
struct Ports {
|
|
static ubyte B() { return volatileLoad(cast(ubyte *)0x0025); }
|
|
static void B(ubyte value) { volatileStore(cast(ubyte *)0x0025, value); }
|
|
}
|