[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / test-74.cs
blob396a1c1e30482f9f0a5aa1136ec49b4d6660c962
2 //
3 // This test excercises #pre-processor directives in non-1 column
4 // as well as the literal strings
5 // Warning: The first empty line is important
7 using System.IO;
9 class X {
10 #if Blah
11 #else
12 public static int Main ()
14 #endif
15 string s = @"Hola\";
16 string d = "Hola\\";
17 string e = @"Co""a";
18 string f = "Co\"a";
20 if (s != d)
21 return 1;
22 if (e != f)
23 return 2;
25 string g = "Hello\nworld";
27 using (StreamReader sr = new StreamReader("test-74.cs")) {
28 int i = sr.Read ();
29 if (sr.Read () <= 13)
30 g = g.Replace ("\n", "\r\n");
33 string h = @"Hello
34 world";
35 if (g != h)
36 return 3;
38 System.Console.WriteLine ("OK");
39 return 0;