diff options
author | Miguel de Icaza <miguel@gnome.org> | 2002-12-15 11:49:32 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2002-12-15 11:49:32 +0300 |
commit | e27296d9359f49b7c0ed1b4a7d60c63d526dec91 (patch) | |
tree | 638501eb42079ee2190cd11f8e68a751562fe164 /mcs/tests/test-176.cs | |
parent | 2891b0badcd81d844b1955fa7f59e6b50ab9b1e6 (diff) |
Add new test
svn path=/trunk/mcs/; revision=9665
Diffstat (limited to 'mcs/tests/test-176.cs')
-rw-r--r-- | mcs/tests/test-176.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mcs/tests/test-176.cs b/mcs/tests/test-176.cs new file mode 100644 index 00000000000..de83474486e --- /dev/null +++ b/mcs/tests/test-176.cs @@ -0,0 +1,20 @@ +using System; + +// +// ~ constant folding +// +class X { + const byte b = 0x0f; + + static int Main () + { + int x = ~b; + byte bb = 0xf; + + if (~bb != x){ + Console.WriteLine ("{0:x}", x); + return 1; + } + return 0; + } +} |