blob: 396a1c1e30482f9f0a5aa1136ec49b4d6660c962 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
//
// This test excercises #pre-processor directives in non-1 column
// as well as the literal strings
// Warning: The first empty line is important
using System.IO;
class X {
#if Blah
#else
public static int Main ()
{
#endif
string s = @"Hola\";
string d = "Hola\\";
string e = @"Co""a";
string f = "Co\"a";
if (s != d)
return 1;
if (e != f)
return 2;
string g = "Hello\nworld";
using (StreamReader sr = new StreamReader("test-74.cs")) {
int i = sr.Read ();
if (sr.Read () <= 13)
g = g.Replace ("\n", "\r\n");
}
string h = @"Hello
world";
if (g != h)
return 3;
System.Console.WriteLine ("OK");
return 0;
}
}
|