1 // RUNNABLE_PHOBOS_TEST
2 // PERMUTE_ARGS:
3 
4 import core.memory, std.stdio;
5 
6 Stuff* stuff1;
7 
8 struct Stuff {
9     uint num;
10 }
11 
main()12 int main()
13 {
14     stuff1 = new Stuff;
15     stuff1.num = 1;
16     auto bar = new byte[1024 * 1024];
17     auto stuff2 = new Stuff;
18     stuff2.num = 2;
19     writeln(stuff1, "\t", stuff2);  // Same address.
20     assert(stuff1 != stuff2);
21     writeln(stuff1.num, "\t", stuff2.num);  // Both 2.
22     assert(stuff1.num == 1);
23     return 0;
24 }
25 
26