diff options
author | Jb Evain <jbevain@gmail.com> | 2007-11-21 14:43:00 +0300 |
---|---|---|
committer | Jb Evain <jbevain@gmail.com> | 2007-11-21 14:43:00 +0300 |
commit | 3a877e8be9007008ebd6b93b08be3d7c349858e3 (patch) | |
tree | 200be710f616ebee2738626370647b51af209010 /linker/Tests | |
parent | 6ed7459eddfce95266b42bb886b83703a79f2289 (diff) |
add test for xml patterns
svn path=/trunk/mcs/; revision=90071
Diffstat (limited to 'linker/Tests')
-rwxr-xr-x | linker/Tests/TestCases/Linker/XmlPattern/Library.cs | 36 | ||||
-rwxr-xr-x | linker/Tests/TestCases/Linker/XmlPattern/Library.dll | bin | 0 -> 3584 bytes | |||
-rwxr-xr-x | linker/Tests/TestCases/Linker/XmlPattern/Makefile | 4 | ||||
-rwxr-xr-x | linker/Tests/TestCases/Linker/XmlPattern/desc.xml | 7 |
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 Binary files differnew file mode 100755 index 000000000..80e7ef34e --- /dev/null +++ b/linker/Tests/TestCases/Linker/XmlPattern/Library.dll 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> |