Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/test17908b.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/test17908b.d(13): Error: function `test17908b.foobar` cannot be used because it is annotated with `@disable`
5 ---
6 */
7 void foobar() {}
8 @disable void foobar(int) {}
9 alias i = foobar;
10
11 void main()
12 {
13 i(10);
14 }