Debian Codegraph @

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

raw
1 // https://issues.dlang.org/show_bug.cgi?id=24110
2
3 /*
4 TEST_OUTPUT:
5 ---
6 fail_compilation/test24110.d(12): Error: static assert: `__traits(compiles, __error)` is false
7 ---
8 */
9
10 struct S { int x; }
11 alias T = shared S;
12 static assert(__traits(compiles, (T[] a, T[] b) => a < b));