aboutsummaryrefslogtreecommitdiffstats
path: root/test/exitrep.asm
diff options
context:
space:
mode:
Diffstat (limited to 'test/exitrep.asm')
-rw-r--r--test/exitrep.asm16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/exitrep.asm b/test/exitrep.asm
new file mode 100644
index 00000000..3be87055
--- /dev/null
+++ b/test/exitrep.asm
@@ -0,0 +1,16 @@
+%macro testrep 0.nolist
+ %assign i 1
+ %rep 4
+ mov eax,i
+ %if i==3
+ %exitrep
+ %endif
+ mov ebx,i
+ %ifn i < 3
+ %error iteration i should not be seen
+ %endif
+ %assign i i+1
+ %endrep
+%endmacro
+
+testrep