]> git.gag.com Git - fw/sdcc/blobdiff - support/regression/tests/funptrs.c
insert reentrant for mcs51
[fw/sdcc] / support / regression / tests / funptrs.c
index 6288d94d4def2514782913b93dd54c2ac42f8829..3e584cf5269ebcc60e59bcc23543cdfc0fa9327d 100644 (file)
@@ -6,7 +6,7 @@
    on the z80.
 */
 typedef void (*NOARGFUNPTR)(void);
-typedef void (*ONEARGFUNPTR)(int);
+typedef void (*ONEARGFUNPTR)(int) REENTRANT;
 
 int count;
 
@@ -17,7 +17,7 @@ incCount(void)
 }
 
 void
-incBy(int a)
+incBy(int a) REENTRANT
 {
   count += a;
 }