diff options
author | 2011-05-31 12:04:11 -0700 | |
---|---|---|
committer | 2011-05-31 12:04:11 -0700 | |
commit | aaff53080fb15b89134ab81880d89af31d16896e (patch) | |
tree | e69e78c9349d1cd63117f15301e15de270fcad90 /BCT/RegressionTests/RegressionTestInput/Class1.cs | |
parent | 8a72a5ba49b582562b8ad9cd5943277b07317470 (diff) | |
parent | bc85d2a59352098f2b7e09556248fff5b459e51d (diff) |
Merge
Diffstat (limited to 'BCT/RegressionTests/RegressionTestInput/Class1.cs')
-rw-r--r-- | BCT/RegressionTests/RegressionTestInput/Class1.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/BCT/RegressionTests/RegressionTestInput/Class1.cs b/BCT/RegressionTests/RegressionTestInput/Class1.cs index 90fa7b50..d9f7b66c 100644 --- a/BCT/RegressionTests/RegressionTestInput/Class1.cs +++ b/BCT/RegressionTests/RegressionTestInput/Class1.cs @@ -157,4 +157,28 @@ namespace RegressionTestInput { }
}
+ public class RealNumbers {
+ public void WriteDouble(double d) {
+ Console.WriteLine(d);
+ }
+ public void ObjectToDouble(object o) {
+ WriteDouble((double)o);
+ }
+ public void RealOperations() {
+ double d = 3.0;
+ double d2 = 4.0;
+ WriteDouble(d + d2);
+ WriteDouble(d - d2);
+ WriteDouble(d * d2);
+ WriteDouble(d / d2);
+ }
+ }
+
+ public class BitwiseOperations {
+ public int BitwiseAnd(int x, int y) { return x & y; }
+ public int BitwiseOr(int x, int y) { return x | y; }
+ public int ExclusiveOr(int x, int y) { return x ^ y; }
+ public int BitwiseNegation(int x) { return ~x; }
+ }
+
}
|