diff options
author | Marek Safar <marek.safar@gmail.com> | 2005-02-11 11:17:52 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2005-02-11 11:17:52 +0300 |
commit | 54632ebf184c8acec023088b00cba7d09ba32f95 (patch) | |
tree | 7b648ba246954cfa8af65a0fff66d4f08e9c73f4 /mcs/errors/cs0133-2.cs | |
parent | bfc7007e154705c41c1138a4c7b8008e86be8a33 (diff) |
2005-02-11 Marek Safar <marek.safar@seznam.cz>
* cs0133-2.cs, cs1641.cs, cs1642.cs, cs1644-3.cs, cs1663.cs
cs1665.cs, cs1666.cs, cs3003-5.cs: Fixed buffer error tests.
svn path=/trunk/mcs/; revision=40466
Diffstat (limited to 'mcs/errors/cs0133-2.cs')
-rw-r--r-- | mcs/errors/cs0133-2.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mcs/errors/cs0133-2.cs b/mcs/errors/cs0133-2.cs new file mode 100644 index 00000000000..45a41997fa2 --- /dev/null +++ b/mcs/errors/cs0133-2.cs @@ -0,0 +1,13 @@ +// cs0133.cs: The expression being assigned to 'S.pathName' must be constant +// Line: 12 +// Compiler options: -unsafe + +class C +{ + public static int i = 4; +} + +public unsafe struct S +{ + private fixed char pathName [C.i]; +} |