Docs: Fix formatting issues in BPF built-ins documentation.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice19295.d
bloba92f5f8384c5e8be46cb40e7c1604276cdbad2a4
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice19295.d(11): Error: `this` for `gun` needs to be type `S2` not type `S1!(gun)`
5 fail_compilation/ice19295.d(11): while evaluating `pragma(msg, &gun)`
6 fail_compilation/ice19295.d(17): Error: template instance `ice19295.S1!(gun)` error instantiating
7 ---
8 */
9 struct S1(T...) {
10 auto fun() {
11 pragma(msg, &T[0]);
15 struct S2 {
16 void gun() {}
17 S1!gun overloaded;