diff test/tmp11.c @ 896:d712ee10feb7

local_nptr for locally defined struct
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 06 Apr 2014 19:20:58 +0900
parents bc919d849346
children
line wrap: on
line diff
--- a/test/tmp11.c	Sun Apr 06 17:11:44 2014 +0900
+++ b/test/tmp11.c	Sun Apr 06 19:20:58 2014 +0900
@@ -8,13 +8,13 @@
 
 NMTBL *
 test2(char *n) {
-    printf("#0009:s %s\n",n);
+    printf("#0010:s %s\n",n);
     return a;
 }
 
 int
 test0(int a,int b,int c) {
-    printf("#0015:a %d b %d c %d\n",a,b,c);
+    printf("#0016:a %d b %d c %d\n",a,b,c);
     return 0;
 }
 
@@ -38,16 +38,16 @@
     a = &f;
     b = test2("test");
     d = test1(1,2,3);
-    printf("#0033:return %d\n",d);
+    printf("#0040:return %d\n",d);
 
     NMTBL **p = (NMTBL**)&heap[2];
     *p = &f;
     b = &f;
     int e = 0;
-    printf("f.nm          %s\n",f.nm);
-    printf("b->nm         %s\n",b->nm);
-    printf("(*p)->nm      %s\n",(*p)->nm);
-    printf("ncaddr(e)->nm %s\n",ncaddr(e)->nm);
+    printf("#0046:f.nm          %s\n",f.nm);
+    printf("#0047:b->nm         %s\n",b->nm);
+    printf("#0048:(*p)->nm      %s\n",(*p)->nm);
+    printf("#0049:ncaddr(e)->nm %s\n",ncaddr(e)->nm);
 
     return d;
 }