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

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJb Evain <jbevain@gmail.com>2007-11-21 14:43:00 +0300
committerJb Evain <jbevain@gmail.com>2007-11-21 14:43:00 +0300
commit3a877e8be9007008ebd6b93b08be3d7c349858e3 (patch)
tree200be710f616ebee2738626370647b51af209010 /linker/Tests
parent6ed7459eddfce95266b42bb886b83703a79f2289 (diff)
add test for xml patterns
svn path=/trunk/mcs/; revision=90071
Diffstat (limited to 'linker/Tests')
-rwxr-xr-xlinker/Tests/TestCases/Linker/XmlPattern/Library.cs36
-rwxr-xr-xlinker/Tests/TestCases/Linker/XmlPattern/Library.dllbin0 -> 3584 bytes
-rwxr-xr-xlinker/Tests/TestCases/Linker/XmlPattern/Makefile4
-rwxr-xr-xlinker/Tests/TestCases/Linker/XmlPattern/desc.xml7
4 files changed, 47 insertions, 0 deletions
diff --git a/linker/Tests/TestCases/Linker/XmlPattern/Library.cs b/linker/Tests/TestCases/Linker/XmlPattern/Library.cs
new file mode 100755
index 000000000..7f14865aa
--- /dev/null
+++ b/linker/Tests/TestCases/Linker/XmlPattern/Library.cs
@@ -0,0 +1,36 @@
+using System;
+
+namespace Foo {
+
+ [NotLinked] public class BarBar {
+ }
+
+ public class FooBaz {
+
+ public FooBaz ()
+ {
+ }
+
+ [NotLinked] public void BarBaz ()
+ {
+ }
+ }
+
+ public class TrucBaz {
+
+ public TrucBaz ()
+ {
+ }
+ }
+
+ public class BazBaz {
+
+ public BazBaz ()
+ {
+ }
+ }
+}
+
+[NotLinked, AttributeUsage (AttributeTargets.All)]
+public class NotLinkedAttribute : Attribute {
+}
diff --git a/linker/Tests/TestCases/Linker/XmlPattern/Library.dll b/linker/Tests/TestCases/Linker/XmlPattern/Library.dll
new file mode 100755
index 000000000..80e7ef34e
--- /dev/null
+++ b/linker/Tests/TestCases/Linker/XmlPattern/Library.dll
Binary files differ
diff --git a/linker/Tests/TestCases/Linker/XmlPattern/Makefile b/linker/Tests/TestCases/Linker/XmlPattern/Makefile
new file mode 100755
index 000000000..2e5bf5bcf
--- /dev/null
+++ b/linker/Tests/TestCases/Linker/XmlPattern/Makefile
@@ -0,0 +1,4 @@
+include ../../config.make
+
+all:
+ MCS /t:library Library.cs
diff --git a/linker/Tests/TestCases/Linker/XmlPattern/desc.xml b/linker/Tests/TestCases/Linker/XmlPattern/desc.xml
new file mode 100755
index 000000000..c8e1e2383
--- /dev/null
+++ b/linker/Tests/TestCases/Linker/XmlPattern/desc.xml
@@ -0,0 +1,7 @@
+<linker>
+ <assembly fullname="Library">
+ <type fullname="Foo.*Baz">
+ <method signature="System.Void .ctor()" />
+ </type>
+ </assembly>
+</linker>