summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/d/40030-delegate.d
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/d/40030-delegate.d')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/d/40030-delegate.d22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/d/40030-delegate.d b/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/d/40030-delegate.d
new file mode 100644
index 00000000..5f7beceb
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/d/40030-delegate.d
@@ -0,0 +1,22 @@
+module er;
+
+void delegate(ubyte[] a) TSender;
+bool delegate(ushort a) TVerifier;
+typedef ushort TAddr;
+
+public void delegate(ubyte[] a) TSender;
+public bool delegate(ushort a) TVerifier;
+public typedef ushort TAddr;
+
+void delegate() dg;
+dg = {
+ int y;
+};
+
+int opApply(int delegate(inout Type[, ...]) dg);
+
+void main()
+{
+ assert(findIf("bcecg", (int x) { return x == 'a'; }) == 5);
+}
+