summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/d/delegate.d
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/d/delegate.d')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/d/delegate.d20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/d/delegate.d b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/d/delegate.d
new file mode 100644
index 00000000..0115ae00
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/d/delegate.d
@@ -0,0 +1,20 @@
+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 );
+}
+