Ignore:
Timestamp:
Nov 12, 2006, 7:57:52 AM (19 years ago)
Author:
bird
Message:

made tst-0 a bare program without any system dependencies (except on nt).

File:
1 edited

Legend:

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

    r2863 r2873  
    11#include "tst.h"
    2 #include <stdio.h>
    32
    43MY_IMPORT(int) FuncA(void);
     
    87int main()
    98{
    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;
    2112}
     13
Note: See TracChangeset for help on using the changeset viewer.