From b23f2cfa68aee5a51e35d60b4c2b63ed4f60bbe0 Mon Sep 17 00:00:00 2001 From: KOLANICH Date: Sun, 4 Sep 2016 14:20:49 +0000 Subject: [PATCH] Added some C# files (made from c) --- csharp/hello_v0.cs | 9 +++++++++ csharp/hello_v1.cs | 8 ++++++++ csharp/patch_v0.cs | 13 +++++++++++++ csharp/patch_v1.cs | 13 +++++++++++++ csharp/saner_v0.cs | 11 +++++++++++ csharp/saner_v1.cs | 12 ++++++++++++ 6 files changed, 66 insertions(+) create mode 100644 csharp/hello_v0.cs create mode 100644 csharp/hello_v1.cs create mode 100644 csharp/patch_v0.cs create mode 100644 csharp/patch_v1.cs create mode 100644 csharp/saner_v0.cs create mode 100644 csharp/saner_v1.cs diff --git a/csharp/hello_v0.cs b/csharp/hello_v0.cs new file mode 100644 index 0000000..ca7be12 --- /dev/null +++ b/csharp/hello_v0.cs @@ -0,0 +1,9 @@ +using System; +namespace Foo{ + public class Bar{ + public static int Main() { + int i; + return 0; + } + } +} \ No newline at end of file diff --git a/csharp/hello_v1.cs b/csharp/hello_v1.cs new file mode 100644 index 0000000..cc9f1ab --- /dev/null +++ b/csharp/hello_v1.cs @@ -0,0 +1,8 @@ +using System; +namespace Foo{ + public class Bar{ + public static int Main() { + return 0; + } + } +} \ No newline at end of file diff --git a/csharp/patch_v0.cs b/csharp/patch_v0.cs new file mode 100644 index 0000000..88256f8 --- /dev/null +++ b/csharp/patch_v0.cs @@ -0,0 +1,13 @@ +using System; +namespace Foo{ + public class Bar{ + public static int Main() { + int a = 0; + int b = 0; + if (a > b) + return 1; + else + return 0; + } + } +} \ No newline at end of file diff --git a/csharp/patch_v1.cs b/csharp/patch_v1.cs new file mode 100644 index 0000000..e7d0580 --- /dev/null +++ b/csharp/patch_v1.cs @@ -0,0 +1,13 @@ +using System; +namespace Foo{ + public class Bar{ + public static int Main() { + int a = 0; + int b = 0; + if (a < b) + return 1; + else + return 0; + } + } +} \ No newline at end of file diff --git a/csharp/saner_v0.cs b/csharp/saner_v0.cs new file mode 100644 index 0000000..ee35bb1 --- /dev/null +++ b/csharp/saner_v0.cs @@ -0,0 +1,11 @@ +using System; +namespace Foo{ + public class Bar{ + public static void Main() { + int y=0, x=1; + x = 37; + if (y==0) + x = 0; + } + } +} \ No newline at end of file diff --git a/csharp/saner_v1.cs b/csharp/saner_v1.cs new file mode 100644 index 0000000..e9d8544 --- /dev/null +++ b/csharp/saner_v1.cs @@ -0,0 +1,12 @@ +using System; +namespace Foo{ + public class Bar{ + public static void Main() { + int y=0, x=1; + if (y==0) + x = 0; + else + x = 37; + } + } +} \ No newline at end of file