Changeset 2967 for trunk/kLdr/testcase/tst-3.c
- Timestamp:
- Feb 13, 2007, 11:28:46 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kLdr/testcase/tst-3.c
r2965 r2967 33 33 int *g_pi1 = &g_i1; 34 34 35 int Tst3Sub(int);35 extern int Tst3Sub(int); 36 36 int (*g_pfnTst3Sub)(int) = &Tst3Sub; 37 38 MY_IMPORT(int) Tst3Ext(int); 39 int (*g_pfnTst3Ext)(int) = &Tst3Ext; 37 40 38 41 char g_achBss[256]; … … 56 59 if (rc != g_pfnTst3Sub(iFortyTwo)) 57 60 return 5; 61 rc = Tst3Ext(iFortyTwo); 62 if (rc != 42) 63 return 6; 64 rc = g_pfnTst3Ext(iFortyTwo); 65 if (rc != 42) 66 return 7; 58 67 for (rc = 0; rc < sizeof(g_achBss); rc++) 59 68 if (g_achBss[rc]) 60 return 6;69 return 8; 61 70 if (g_achBss[0] || g_achBss[1] || g_achBss[255]) 62 return 7;71 return 9; 63 72 64 73 return 42; 65 74 } 66 75 67 68 int Tst3Sub(int iFortyTwo)69 {70 return iFortyTwo * 11;71 }72
Note:
See TracChangeset
for help on using the changeset viewer.