Debian Codegraph @

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

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