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:
authorMiguel de Icaza <miguel@gnome.org>2003-02-26 07:10:34 +0300
committerMiguel de Icaza <miguel@gnome.org>2003-02-26 07:10:34 +0300
commit12f5301d37ce9bcc215fa3bc1892dd3df30a7783 (patch)
tree1e57090204b392ae96494109f29c7fcf2ce8929c /mcs/errors/cs0208-2.cs
parent832b6c0b5e22bd08c9fe3ee23d5b5a7479638731 (diff)
Add new test
svn path=/trunk/mcs/; revision=11982
Diffstat (limited to 'mcs/errors/cs0208-2.cs')
-rw-r--r--mcs/errors/cs0208-2.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/mcs/errors/cs0208-2.cs b/mcs/errors/cs0208-2.cs
new file mode 100644
index 00000000000..8b0ac360a63
--- /dev/null
+++ b/mcs/errors/cs0208-2.cs
@@ -0,0 +1,18 @@
+// 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 class Bar
+ {
+ unsafe static void Main ()
+ {
+ Foo f = new Foo ();
+ Foo *s = &f;
+ }
+ }
+}