1. Vincenzo Ampolo
  2. gdc

Source

gdc / gdc.test / fail_compilation / fail263.d

1
2
3
4
5
6
7
8
9
// 2766

const byte[] A = [ cast(byte)0 ];
void f( byte* p){
}
void func(){
    f(A.ptr);
}