bring Mono Security to monotouch
[mcs.git] / tests / test-678.cs
blobcbb5bb7a02265da129df739d8d542506c52428a9
1 using System;
3 public class NaNTest
5 public NaNTest (double width, double height)
7 if (width < 0 || height < 0)
8 throw new ArgumentException ("fails");
10 if (width <= 0 || height <= 0)
11 throw new ArgumentException ("fails 2");
13 if (width > 0 || height > 0)
14 throw new ArgumentException ("fails 3");
16 if (width >= 0 || height >= 0)
17 throw new ArgumentException ("fails 4");
20 static int Main ()
22 if (Double.NaN < 0 || Double.NaN < 0)
23 throw new ArgumentException ("passes");
25 new NaNTest (Double.NaN, Double.NaN);
27 return 0;