Annotation of 43BSDTahoe/lib/old_compiler/dbx/tests/cc/call.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * Test program for dbx call command.
        !             3:  */
        !             4: 
        !             5: int global;
        !             6: 
        !             7: main (argc, argv)
        !             8: int argc;
        !             9: char *argv[];
        !            10: {
        !            11:     int main_local;
        !            12: 
        !            13:     global = 2;
        !            14:     main_local = 19;
        !            15:     p1();
        !            16:     p2(main_local);
        !            17:     p3("test");
        !            18: }
        !            19: 
        !            20: p1 ()
        !            21: {
        !            22:     printf("in p1\n");
        !            23:     global = 4;
        !            24: }
        !            25: 
        !            26: p2 (from_main)
        !            27: int from_main;
        !            28: {
        !            29:     printf("in p2(%d)\n", from_main);
        !            30:     global = 9;
        !            31: }
        !            32: 
        !            33: p3 (s)
        !            34: char s[];
        !            35: {
        !            36:     printf("in p3(%s)\n", s);
        !            37:     global = 10;
        !            38: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.