Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Alberto Cortez <calberto.cortez@gmail.com>2005-11-05 04:02:38 +0300
committerCarlos Alberto Cortez <calberto.cortez@gmail.com>2005-11-05 04:02:38 +0300
commit4927669f93cc541d37bb225b2f48c75cee9273f4 (patch)
treed898df0925aa21aabde19c0d393bfb498cebc922 /mcs/tests/gtest-friend-06.cs
parent05e4e8d9d88d5b6f35368038cbbb089dffd3a78b (diff)
2005-11-04 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* gtest-friend-[01-12].cs, gtest-friend-00-lib.cs, gtest-friend-01-lib.cs, gtest-friend-02-lib.cs: New tests for friend assembly access. * InternalsVisibleTest.snk, InternalsVisibleTest2.snk: Helper keys for our new friend access tests. svn path=/trunk/mcs/; revision=52602
Diffstat (limited to 'mcs/tests/gtest-friend-06.cs')
-rw-r--r--mcs/tests/gtest-friend-06.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/mcs/tests/gtest-friend-06.cs b/mcs/tests/gtest-friend-06.cs
new file mode 100644
index 00000000000..05190455052
--- /dev/null
+++ b/mcs/tests/gtest-friend-06.cs
@@ -0,0 +1,15 @@
+// Compiler options: -r:gtest-friend-01-lib.dll
+using System;
+
+public class Test
+{
+ static void Main ()
+ {
+ FriendClass fc = new FriendClass ();
+
+ // We should be able to access them
+ int a = FriendClass.StaticFriendProperty;
+ int b = fc.InstanceFriendProperty;
+ }
+}
+