Add dlls folder.
authorMarek Safar <marek.safar@gmail.com>
Wed, 17 Sep 2008 17:05:01 +0000 (17:05 -0000)
committerMarek Safar <marek.safar@gmail.com>
Wed, 17 Sep 2008 17:05:01 +0000 (17:05 -0000)
svn path=/trunk/mcs/; revision=113330

mcs/tests/Makefile
mcs/tests/dlls/test-679-1/test-679-lib.cs [new file with mode: 0755]
mcs/tests/dlls/test-679-2/test-679-lib-2.cs [new file with mode: 0755]

index e35c8529f8874edaf69a14eb5b1ed9e02472374d..5aace793a56c96331e3847860109083fccdcc26c 100644 (file)
@@ -6,7 +6,7 @@ thisdir = tests
 SUBDIRS =
 include ../build/rules.make
 
-DISTFILES = README.tests
+DISTFILES = README.tests $(wildcard dlls/**/*.cs)
 DISTFILES += $(wildcard *.cs) $(wildcard *.il) $(wildcard *.xml) $(wildcard *.inc) $(wildcard known-issues-*) $(wildcard *.snk)
 
 with_mono_path = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH"
@@ -108,6 +108,9 @@ ilasm:
        $(ILASM) /dll property-il.il
        $(CSCOMPILE) /r:property-il.dll property-main.cs /out:property-main.exe
        $(TEST_RUNTIME) property-main.exe
+       
+       $(CSCOMPILE) -t:library dlls/test-679-2/test-679-lib-2.cs
+       $(CSCOMPILE) -t:library dlls/test-679-1/test-679-lib.cs -r:dlls/test-679-2/test-679-lib-2.dll
 endif
 
 endif
diff --git a/mcs/tests/dlls/test-679-1/test-679-lib.cs b/mcs/tests/dlls/test-679-1/test-679-lib.cs
new file mode 100755 (executable)
index 0000000..566ee00
--- /dev/null
@@ -0,0 +1,21 @@
+using System;
+
+[assembly: LibA ("b")]
+
+public class LibBAttribute : Attribute {
+       public LibBAttribute (string s)
+       {
+       }
+}
+
+public class LibB : LibA {
+       public static new void A ()
+       {
+               LibA.A ();
+       }
+
+       public static void B ()
+       {
+               Console.WriteLine ("B");
+       }
+}
diff --git a/mcs/tests/dlls/test-679-2/test-679-lib-2.cs b/mcs/tests/dlls/test-679-2/test-679-lib-2.cs
new file mode 100755 (executable)
index 0000000..24ef752
--- /dev/null
@@ -0,0 +1,14 @@
+using System;
+
+public class LibAAttribute : Attribute {
+       public LibAAttribute (string s)
+       {
+       }
+}
+
+public class LibA {
+       public static void A ()
+       {
+               Console.WriteLine ("A");
+       }
+}