1 /*
2 REQUIRED_ARGS: -de
3 TEST_OUTPUT:
4 ---
5 fail_compilation/test11176.d(12): Deprecation: b.ptr cannot be used in @safe code, use &b[0] instead
6 fail_compilation/test11176.d(16): Deprecation: b.ptr cannot be used in @safe code, use &b[0] instead
7 ---
8 */
9 
10 // https://issues.dlang.org/show_bug.cgi?id=11176
11 
oops(ubyte[]b)12 @safe ubyte oops(ubyte[] b) {
13     return *b.ptr;
14 }
15 
oops(ubyte[3]b)16 @safe ubyte oops(ubyte[3] b) {
17     return *b.ptr;
18 }
19 
20