Add ifdef tests.
authorMichael Urman <mu@tortall.net>
Sat, 16 Mar 2002 22:17:01 +0000 (22:17 -0000)
committerMichael Urman <mu@tortall.net>
Sat, 16 Mar 2002 22:17:01 +0000 (22:17 -0000)
svn path=/trunk/yasm/; revision=505

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

index bfb6e09019dcc5bd2c8596f9552e660adcbf94b9..59e1c4769159b4f4377d6d6152dde575586db060 100644 (file)
@@ -18,8 +18,11 @@ TESTS += \
 
 EXTRA_DIST += \
        src/preprocs/yapp/tests/define.asm \
-       src/preprocs/yapp/tests/define.pre
+       src/preprocs/yapp/tests/define.pre \
+       src/preprocs/yapp/tests/ifdef.asm \
+       src/preprocs/yapp/tests/ifdef.pre \
 
 CLEANFILES += \
-       define.yp
+       define.yp \
+       ifdef.yp
 
diff --git a/modules/preprocs/yapp/tests/ifdef.asm b/modules/preprocs/yapp/tests/ifdef.asm
new file mode 100644 (file)
index 0000000..b9d7807
--- /dev/null
@@ -0,0 +1,13 @@
+%ifdef foo
+       mov     ax, foo
+%endif
+%ifdef bar
+       mov     ax, bar
+%endif
+%define foo 5
+%ifdef foo
+       mov     ax, foo
+%endif
+%ifdef bar
+       mov     ax, bar
+%endif
diff --git a/modules/preprocs/yapp/tests/ifdef.pre b/modules/preprocs/yapp/tests/ifdef.pre
new file mode 100644 (file)
index 0000000..b7aa189
--- /dev/null
@@ -0,0 +1,10 @@
+
+%line 3+1 ./src/preprocs/yapp/tests/ifdef.asm
+
+%line 6+1 ./src/preprocs/yapp/tests/ifdef.asm
+
+
+       mov     ax, 5
+
+
+%line 13+1 ./src/preprocs/yapp/tests/ifdef.asm
index bfb6e09019dcc5bd2c8596f9552e660adcbf94b9..59e1c4769159b4f4377d6d6152dde575586db060 100644 (file)
@@ -18,8 +18,11 @@ TESTS += \
 
 EXTRA_DIST += \
        src/preprocs/yapp/tests/define.asm \
-       src/preprocs/yapp/tests/define.pre
+       src/preprocs/yapp/tests/define.pre \
+       src/preprocs/yapp/tests/ifdef.asm \
+       src/preprocs/yapp/tests/ifdef.pre \
 
 CLEANFILES += \
-       define.yp
+       define.yp \
+       ifdef.yp
 
diff --git a/src/preprocs/yapp/tests/ifdef.asm b/src/preprocs/yapp/tests/ifdef.asm
new file mode 100644 (file)
index 0000000..b9d7807
--- /dev/null
@@ -0,0 +1,13 @@
+%ifdef foo
+       mov     ax, foo
+%endif
+%ifdef bar
+       mov     ax, bar
+%endif
+%define foo 5
+%ifdef foo
+       mov     ax, foo
+%endif
+%ifdef bar
+       mov     ax, bar
+%endif
diff --git a/src/preprocs/yapp/tests/ifdef.pre b/src/preprocs/yapp/tests/ifdef.pre
new file mode 100644 (file)
index 0000000..b7aa189
--- /dev/null
@@ -0,0 +1,10 @@
+
+%line 3+1 ./src/preprocs/yapp/tests/ifdef.asm
+
+%line 6+1 ./src/preprocs/yapp/tests/ifdef.asm
+
+
+       mov     ax, 5
+
+
+%line 13+1 ./src/preprocs/yapp/tests/ifdef.asm