]> granicus.if.org Git - yasm/commitdiff
test case for %define to a %define. non-recursive.
authorMichael Urman <mu@tortall.net>
Sun, 17 Mar 2002 00:47:19 +0000 (00:47 -0000)
committerMichael Urman <mu@tortall.net>
Sun, 17 Mar 2002 00:47:19 +0000 (00:47 -0000)
svn path=/trunk/yasm/; revision=510

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

index fcc328bbdd7b4ef5a1d09533b06cd7d8d2c57577..57e461b05b34227df7c5d9c2013c23d86a5bda77 100644 (file)
@@ -23,6 +23,8 @@ EXTRA_DIST += \
        src/preprocs/yapp/tests/comment.pre \
        src/preprocs/yapp/tests/define.asm \
        src/preprocs/yapp/tests/define.pre \
+       src/preprocs/yapp/tests/ddefine.asm \
+       src/preprocs/yapp/tests/ddefine.pre \
        src/preprocs/yapp/tests/ifdef.asm \
        src/preprocs/yapp/tests/ifdef.pre \
        src/preprocs/yapp/tests/include.asm \
@@ -34,6 +36,7 @@ CLEANFILES += \
        raw.yp \
        comment.yp \
        define.yp \
+       ddefine.yp \
        ifdef.yp \
        include.yp \
        rinclude.yp
diff --git a/modules/preprocs/yapp/tests/ddefine.asm b/modules/preprocs/yapp/tests/ddefine.asm
new file mode 100644 (file)
index 0000000..ae46fc6
--- /dev/null
@@ -0,0 +1,6 @@
+%define foo 5
+%define bar baz
+       mov     ax, [foo+bar]
+%define baz bzzt
+%define bzzt 9
+       mov     ax, baz+bar
diff --git a/modules/preprocs/yapp/tests/ddefine.pre b/modules/preprocs/yapp/tests/ddefine.pre
new file mode 100644 (file)
index 0000000..1a91d07
--- /dev/null
@@ -0,0 +1,5 @@
+%line 3+1 ./src/preprocs/yapp/tests/ddefine.asm
+       mov     ax, [5+baz]
+
+
+       mov     ax, 9+9
index fcc328bbdd7b4ef5a1d09533b06cd7d8d2c57577..57e461b05b34227df7c5d9c2013c23d86a5bda77 100644 (file)
@@ -23,6 +23,8 @@ EXTRA_DIST += \
        src/preprocs/yapp/tests/comment.pre \
        src/preprocs/yapp/tests/define.asm \
        src/preprocs/yapp/tests/define.pre \
+       src/preprocs/yapp/tests/ddefine.asm \
+       src/preprocs/yapp/tests/ddefine.pre \
        src/preprocs/yapp/tests/ifdef.asm \
        src/preprocs/yapp/tests/ifdef.pre \
        src/preprocs/yapp/tests/include.asm \
@@ -34,6 +36,7 @@ CLEANFILES += \
        raw.yp \
        comment.yp \
        define.yp \
+       ddefine.yp \
        ifdef.yp \
        include.yp \
        rinclude.yp
diff --git a/src/preprocs/yapp/tests/ddefine.asm b/src/preprocs/yapp/tests/ddefine.asm
new file mode 100644 (file)
index 0000000..ae46fc6
--- /dev/null
@@ -0,0 +1,6 @@
+%define foo 5
+%define bar baz
+       mov     ax, [foo+bar]
+%define baz bzzt
+%define bzzt 9
+       mov     ax, baz+bar
diff --git a/src/preprocs/yapp/tests/ddefine.pre b/src/preprocs/yapp/tests/ddefine.pre
new file mode 100644 (file)
index 0000000..1a91d07
--- /dev/null
@@ -0,0 +1,5 @@
+%line 3+1 ./src/preprocs/yapp/tests/ddefine.asm
+       mov     ax, [5+baz]
+
+
+       mov     ax, 9+9