Changeset 2873
- Timestamp:
- Nov 12, 2006, 7:57:52 AM (18 years ago)
- Location:
- trunk/kLdr/testcase
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/kLdr/testcase/Makefile.kmk ¶
r2870 r2873 112 112 TEMPLATE_TSTBAREPROG = Bare bone testcase program template 113 113 TEMPLATE_TSTBAREPROG_EXTENDS = TSTBARE 114 ifneq ($(filter win ntwin32 win64,$(BUILD_TARGET)),)114 ifneq ($(filter win win32 win64,$(BUILD_TARGET)),) 115 115 TEMPLATE_TSTBAREPROG_LDFLAGS += -Entry:WinMain -FIXED:NO 116 116 else 117 TEMPLATE_TSTBAREPROG_LDFLAGS.nt += -FIXED:NO 117 118 endif 118 119 … … 151 152 tst-0-d_SOURCES = tst-0-d.c tstDllMainStub.c 152 153 153 tst-0_TEMPLATE = TST PROG154 tst-0_SOURCES = tst-0.c 154 tst-0_TEMPLATE = TSTBAREPROG 155 tst-0_SOURCES = tst-0.c tstExeMainStub.c 155 156 156 157 ifeq ($(filter-out nt win win32 win64,$(BUILD_TARGET)),) -
TabularUnified trunk/kLdr/testcase/tst-0.c ¶
r2863 r2873 1 1 #include "tst.h" 2 #include <stdio.h>3 2 4 3 MY_IMPORT(int) FuncA(void); … … 8 7 int main() 9 8 { 10 unsigned long ul; 11 printf("graph:\n" 12 " tst-0 -> a -> d\n" 13 " b -> d\n" 14 " c -> d\n"); 15 ul = FuncA() | FuncB() | FuncC(); 16 if (ul == 0x42424242) 17 printf("tst-0: success, ul=%#lx\n", ul); 18 else 19 printf("tst-0: failure, ul=%#lx\n", ul); 20 return ul == 0x42424242 ? 0 : 1; 9 unsigned u; 10 u = FuncA() | FuncB() | FuncC(); 11 return u == 0x42424242 ? 0 : 1; 21 12 } 13 -
TabularUnified trunk/kLdr/testcase/tst.h ¶
r2870 r2873 33 33 34 34 35 #if defined(__OS2__) || defined(__WIN__) 35 #if defined(__OS2__) || defined(__WIN__) || defined(__NT__) 36 36 # define MY_EXPORT(type) __declspec(dllexport) type 37 37 //# define MY_IMPORT(type) extern __declspec(dllimport) type
Note:
See TracChangeset
for help on using the changeset viewer.