MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail12236.d
blob824f5e48db2590d4dd305bf97c3a74b4f47f7adc
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail12236.d(16): Error: forward reference to inferred return type of function `f1`
5 fail_compilation/fail12236.d(16): while evaluating `pragma(msg, f1.mangleof)`
6 fail_compilation/fail12236.d(21): Error: forward reference to inferred return type of function `f2`
7 fail_compilation/fail12236.d(21): while evaluating `pragma(msg, f2(T)(T).mangleof)`
8 fail_compilation/fail12236.d(27): Error: template instance `fail12236.f2!int` error instantiating
9 fail_compilation/fail12236.d(31): Error: forward reference to inferred return type of function `__lambda1`
10 fail_compilation/fail12236.d(31): while evaluating `pragma(msg, __lambda1(__T1)(a).mangleof)`
11 ---
14 auto f1(int)
16 pragma(msg, f1.mangleof); // forward reference error
19 auto f2(T)(T)
21 pragma(msg, f2.mangleof); // error <- weird output: "v"
24 void main()
26 f1(1);
27 f2(1);
29 (a) {
30 int x;
31 pragma(msg, __traits(parent, x).mangleof);
32 } (1);