d: Merge upstream dmd 47871363d, druntime, c52e28b7, phobos 99e9c1b77.
[official-gcc.git] / gcc / testsuite / gdc.test / compilable / test20990.d
blob0036e1441caa2880cf740272e35fde6c31bbfc99
1 // REQUIRED_ARGS: -O
2 // https://issues.dlang.org/show_bug.cgi?id=20990
4 // foo() and bar() should produce the same code when
5 // optimized.
7 void foo(int* ptr)
9 if (ptr is null)
10 assert(false);
11 *ptr = 42;
14 void bar(int* ptr)
16 assert(ptr);
17 *ptr = 42;