2009-01-24 Zoltan Varga <vargaz@gmail.com>
[mcs.git] / tests / test-74.cs
blob986b2db5e8b992e8c57d51e4979eb2f7899260e5
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 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;