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:
authorAlejandro Sánchez Acosta <asanchez@mono-cvs.ximian.com>2002-12-24 17:33:51 +0300
committerAlejandro Sánchez Acosta <asanchez@mono-cvs.ximian.com>2002-12-24 17:33:51 +0300
commit433d12e01a540b7e2acaaaf05b49a1f85a0fd0c0 (patch)
tree6947973f964636095a32932dff1976febc9e289e /mcs/errors/cs0208.cs
parentada835f12f4ef9df87cfbfcc775e14102e6a04eb (diff)
Added cs0208.cs test error.
svn path=/trunk/mcs/; revision=9861
Diffstat (limited to 'mcs/errors/cs0208.cs')
-rw-r--r--mcs/errors/cs0208.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/mcs/errors/cs0208.cs b/mcs/errors/cs0208.cs
new file mode 100644
index 00000000000..b78f1b0e201
--- /dev/null
+++ b/mcs/errors/cs0208.cs
@@ -0,0 +1,22 @@
+// cs0208.cs: Cannot take the address or size of a variable of a managed type ('cs208.Foo')
+// Line: 19
+
+namespace cs208
+{
+ public class Foo
+ {
+ public int Add (int a, int b)
+ {
+ return a + b;
+ }
+ }
+
+ public class Bar
+ {
+ unsafe static void Main ()
+ {
+ Foo f = new Foo ();
+ Foo *s = &f;
+ }
+ }
+}