Ignore:
Timestamp:
Feb 13, 2007, 11:28:46 PM (19 years ago)
Author:
bird
Message:

More testcase fun.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/testcase/tst-3.c

    r2965 r2967  
    3333int *g_pi1 = &g_i1;
    3434
    35 int Tst3Sub(int);
     35extern int Tst3Sub(int);
    3636int (*g_pfnTst3Sub)(int) = &Tst3Sub;
     37
     38MY_IMPORT(int) Tst3Ext(int);
     39int (*g_pfnTst3Ext)(int) = &Tst3Ext;
    3740
    3841char g_achBss[256];
     
    5659    if (rc != g_pfnTst3Sub(iFortyTwo))
    5760        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;
    5867    for (rc = 0; rc < sizeof(g_achBss); rc++)
    5968        if (g_achBss[rc])
    60             return 6;
     69            return 8;
    6170    if (g_achBss[0] || g_achBss[1] || g_achBss[255])
    62         return 7;
     71        return 9;
    6372
    6473    return 42;
    6574}
    6675
    67 
    68 int Tst3Sub(int iFortyTwo)
    69 {
    70     return iFortyTwo * 11;
    71 }
    72 
Note: See TracChangeset for help on using the changeset viewer.