Debian Codegraph @

gcc/testsuite/gdc.test/compilable/test14114.d

raw
1 // REQUIRED_ARGS: -O
2
3 // https://issues.dlang.org/show_bug.cgi?id=14114
4
5 import core.volatile;
6
7 struct Ports {
8 static ubyte B() { return volatileLoad(cast(ubyte *)0x0025); }
9 static void B(ubyte value) { volatileStore(cast(ubyte *)0x0025, value); }
10 }