summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/cs/10160-delegate.cs
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/cs/10160-delegate.cs')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/cs/10160-delegate.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/cs/10160-delegate.cs b/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/cs/10160-delegate.cs
new file mode 100644
index 00000000..6296ad80
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/cs/10160-delegate.cs
@@ -0,0 +1,29 @@
+void foo()
+{
+ obj.cb += () => { };
+
+ funcwithverylongname(() =>
+ {
+ func();
+ });
+}
+
+Func(
+ "stuff",
+ foo =>
+{
+ bar();
+});
+
+Func(
+ "stuff",
+ foo =>
+{
+ bar();
+});
+
+data.Sort(
+ delegate(InputData lhs, InputData rhs)
+{
+ return lhs.m_Name.CompareTo(rhs.m_Name);
+});