Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJb Evain <jbevain@gmail.com>2009-06-12 16:41:42 +0400
committerJb Evain <jbevain@gmail.com>2009-06-12 16:41:42 +0400
commit514337e0fa88e693b088798dfb2ff7c6f1ef50a7 (patch)
tree5fbc0f063cbec3ee9b2aba869922f536c1cd5cdf /mcs/tests/gtest-450.cs
parent1903e0a65b21c12430f34a1926e11413e516888a (diff)
2009-06-12 Jb Evain <jbevain@novell.com>
* gtest-449.cs * gtest-450.cs: new tests for the /platform support. svn path=/trunk/mcs/; revision=135991
Diffstat (limited to 'mcs/tests/gtest-450.cs')
-rw-r--r--mcs/tests/gtest-450.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/mcs/tests/gtest-450.cs b/mcs/tests/gtest-450.cs
new file mode 100644
index 00000000000..541f5e3d817
--- /dev/null
+++ b/mcs/tests/gtest-450.cs
@@ -0,0 +1,26 @@
+// Compiler options: -platform:x86
+
+using System;
+using System.Reflection;
+
+class Program {
+
+ static int Main ()
+ {
+ PortableExecutableKinds pekind;
+ ImageFileMachine machine;
+
+ typeof (Program).Module.GetPEKind (out pekind, out machine);
+
+ if ((pekind & PortableExecutableKinds.ILOnly) != 0)
+ return 1;
+
+ if ((pekind & PortableExecutableKinds.Required32Bit) == 0)
+ return 2;
+
+ if (machine != ImageFileMachine.I386)
+ return 3;
+
+ return 0;
+ }
+}