diff --git a/test/asm/err/bug1678.s b/test/asm/err/bug1678.s
new file mode 100644
index 000000000..d91e52214
--- /dev/null
+++ b/test/asm/err/bug1678.s
@@ -0,0 +1,22 @@
+
+; #1678 Endless loop printing error messages
+
+        .macpack longbranch
+
+        .import _exit
+        .export _main
+
+.macro  foo
+        foo
+.endmacro
+
+.struct bar
+        foo
+.endstruct
+
+_main:
+        ; exit OK
+        lda #0
+        ldx #0
+        jmp _exit
+