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