diff options
author | Raja R Harinath <harinath@hurrynot.org> | 2006-12-01 14:13:02 +0300 |
---|---|---|
committer | Raja R Harinath <harinath@hurrynot.org> | 2006-12-01 14:13:02 +0300 |
commit | 0b9cac764bedadbe9b892f68057f4834813d9f9b (patch) | |
tree | 36e6fbb3cd32e9e3efaadf24368ffd0ebc6498b1 /mcs/tests/gtest-298.cs | |
parent | c15d2be13a2fe37cff93ec8171c1b1afe96eab37 (diff) |
* test-541.cs, gtest-298.cs: New tests based on #79972.
delete empty files
svn path=/trunk/mcs/; revision=68826
Diffstat (limited to 'mcs/tests/gtest-298.cs')
-rw-r--r-- | mcs/tests/gtest-298.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mcs/tests/gtest-298.cs b/mcs/tests/gtest-298.cs new file mode 100644 index 00000000000..a0aa6ed6227 --- /dev/null +++ b/mcs/tests/gtest-298.cs @@ -0,0 +1,20 @@ +delegate void TestFunc<T> (T val); + +class A +{ + public A (TestFunc<int> func) + { + func (0); + } +} + +class TestClass +{ + static int i = 1; + static readonly A a = new A(delegate(int a) { i = a; }); + + static int Main () + { + return i; + } +} |