mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-13 03:13:13 +01:00
Renamed some LLVM uses of ::create statics to ::Create , lower case ones will be deprecated soon.
18 lines
217 B
D
18 lines
217 B
D
struct bar {
|
|
int bar;
|
|
}
|
|
|
|
void main() {
|
|
bar Bar;
|
|
with (Bar)
|
|
{
|
|
assert(Bar.bar == 0);
|
|
void test()
|
|
{
|
|
bar ++;
|
|
}
|
|
test();
|
|
}
|
|
assert(Bar.bar == 1);
|
|
}
|