]> granicus.if.org Git - yasm/commitdiff
Tests for recursive %defines.
authorMichael Urman <mu@tortall.net>
Sun, 17 Mar 2002 01:06:16 +0000 (01:06 -0000)
committerMichael Urman <mu@tortall.net>
Sun, 17 Mar 2002 01:06:16 +0000 (01:06 -0000)
svn path=/trunk/yasm/; revision=512

modules/preprocs/yapp/Makefile.inc
modules/preprocs/yapp/tests/rdefine.asm [new file with mode: 0644]
modules/preprocs/yapp/tests/rdefine.pre [new file with mode: 0644]
src/preprocs/yapp/Makefile.inc
src/preprocs/yapp/tests/rdefine.asm [new file with mode: 0644]
src/preprocs/yapp/tests/rdefine.pre [new file with mode: 0644]

index 57e461b05b34227df7c5d9c2013c23d86a5bda77..f9f1d01adb9bd9c5b78d0d9ca6a95c40b5396903 100644 (file)
@@ -25,6 +25,8 @@ EXTRA_DIST += \
        src/preprocs/yapp/tests/define.pre \
        src/preprocs/yapp/tests/ddefine.asm \
        src/preprocs/yapp/tests/ddefine.pre \
+       src/preprocs/yapp/tests/rdefine.asm \
+       src/preprocs/yapp/tests/rdefine.pre \
        src/preprocs/yapp/tests/ifdef.asm \
        src/preprocs/yapp/tests/ifdef.pre \
        src/preprocs/yapp/tests/include.asm \
@@ -37,6 +39,7 @@ CLEANFILES += \
        comment.yp \
        define.yp \
        ddefine.yp \
+       rdefine.yp \
        ifdef.yp \
        include.yp \
        rinclude.yp
diff --git a/modules/preprocs/yapp/tests/rdefine.asm b/modules/preprocs/yapp/tests/rdefine.asm
new file mode 100644 (file)
index 0000000..c4b1644
--- /dev/null
@@ -0,0 +1,6 @@
+%define recursion endless
+%define endless recursion
+       mov     ax, 5
+       mov     ax, endless
+%define recurse recurse
+       mov     ax, recurse
diff --git a/modules/preprocs/yapp/tests/rdefine.pre b/modules/preprocs/yapp/tests/rdefine.pre
new file mode 100644 (file)
index 0000000..16d1330
--- /dev/null
@@ -0,0 +1,5 @@
+%line 3+1 ./src/preprocs/yapp/tests/rdefine.asm
+       mov     ax, 5
+       mov     ax, endless
+
+       mov     ax, recurse
index 57e461b05b34227df7c5d9c2013c23d86a5bda77..f9f1d01adb9bd9c5b78d0d9ca6a95c40b5396903 100644 (file)
@@ -25,6 +25,8 @@ EXTRA_DIST += \
        src/preprocs/yapp/tests/define.pre \
        src/preprocs/yapp/tests/ddefine.asm \
        src/preprocs/yapp/tests/ddefine.pre \
+       src/preprocs/yapp/tests/rdefine.asm \
+       src/preprocs/yapp/tests/rdefine.pre \
        src/preprocs/yapp/tests/ifdef.asm \
        src/preprocs/yapp/tests/ifdef.pre \
        src/preprocs/yapp/tests/include.asm \
@@ -37,6 +39,7 @@ CLEANFILES += \
        comment.yp \
        define.yp \
        ddefine.yp \
+       rdefine.yp \
        ifdef.yp \
        include.yp \
        rinclude.yp
diff --git a/src/preprocs/yapp/tests/rdefine.asm b/src/preprocs/yapp/tests/rdefine.asm
new file mode 100644 (file)
index 0000000..c4b1644
--- /dev/null
@@ -0,0 +1,6 @@
+%define recursion endless
+%define endless recursion
+       mov     ax, 5
+       mov     ax, endless
+%define recurse recurse
+       mov     ax, recurse
diff --git a/src/preprocs/yapp/tests/rdefine.pre b/src/preprocs/yapp/tests/rdefine.pre
new file mode 100644 (file)
index 0000000..16d1330
--- /dev/null
@@ -0,0 +1,5 @@
+%line 3+1 ./src/preprocs/yapp/tests/rdefine.asm
+       mov     ax, 5
+       mov     ax, endless
+
+       mov     ax, recurse