Add ifdef tests.

svn path=/trunk/yasm/; revision=505
0.3
Michael Urman 23 years ago
parent 314085475c
commit 716884b0bb
  1. 7
      modules/preprocs/yapp/Makefile.inc
  2. 13
      modules/preprocs/yapp/tests/ifdef.asm
  3. 10
      modules/preprocs/yapp/tests/ifdef.pre
  4. 7
      src/preprocs/yapp/Makefile.inc
  5. 13
      src/preprocs/yapp/tests/ifdef.asm
  6. 10
      src/preprocs/yapp/tests/ifdef.pre

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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
Loading…
Cancel
Save