diff options
author | Miguel de Icaza <miguel@gnome.org> | 2001-11-28 21:15:16 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2001-11-28 21:15:16 +0300 |
commit | 01f5ed55691bf263de4b5ebab21ff357b0af3162 (patch) | |
tree | 721428e1a37d6c6edb0878aadc6aed554e26ca8a /mcs/errors/cs0575.cs | |
parent | 7dc4f845cd37bf01ddb38c10bf44a9efe2ae8193 (diff) |
Add more error tests
svn path=/trunk/mcs/; revision=1462
Diffstat (limited to 'mcs/errors/cs0575.cs')
-rwxr-xr-x | mcs/errors/cs0575.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mcs/errors/cs0575.cs b/mcs/errors/cs0575.cs new file mode 100755 index 00000000000..16d0b7aa49e --- /dev/null +++ b/mcs/errors/cs0575.cs @@ -0,0 +1,12 @@ +// cs0575.cs: destructors are only allowed in class types +// Line: 5 +struct X { + + ~X () + { + } + + static void Main () + { + } +} |