changeset 151:f50665879ed4

added extern(Windows/Pascal/C++) tests
author thomask
date Wed, 24 Nov 2004 09:08:58 +0000
parents 0395ab376f4f
children 5b69c210daee
files compile/extern_03.d compile/extern_04.d nocompile/extern_05.d
diffstat 3 files changed, 39 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/extern_03.d	Wed Nov 24 09:08:58 2004 +0000
@@ -0,0 +1,13 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+module dstress.compile.extern_03;
+
+version(Windows){
+	extern (Windows) int test(char c);
+
+	int check(){
+		return test('a');
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/extern_04.d	Wed Nov 24 09:08:58 2004 +0000
@@ -0,0 +1,13 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+module dstress.compile.extern_04;
+
+version(Windows){
+	extern (Pascal) int test(char c);
+
+	int check(){
+		return test('a');
+	}
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/extern_05.d	Wed Nov 24 09:08:58 2004 +0000
@@ -0,0 +1,13 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// this feature is as of dmd-0.106 undocumented
+
+module dstress.nocompile.extern_05;
+
+extern (C++) int test(char c);
+
+int check(){
+	return test('a');
+}