d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail263.d
blob0fa2f86a14a51e7236ae55750e11a4b05314de5f
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail263.d(19): Error: function `fail263.f(byte* p)` is not callable using argument types `(const(byte)*)`
5 fail_compilation/fail263.d(19): cannot pass argument `cast(const(byte)*)A` of type `const(byte)*` to parameter `byte* p`
6 ---
7 */
9 // https://issues.dlang.org/show_bug.cgi?id=2766
10 // DMD hangs with 0%cpu
11 const byte[] A = [ cast(byte)0 ];
13 void f(byte* p)
17 void func()
19 f(A.ptr);