]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR modula2/119779: ASM examples no longer work
authorGaius Mulley <gaiusmod2@gmail.com>
Mon, 9 Jun 2025 14:26:35 +0000 (15:26 +0100)
committerGaius Mulley <gaiusmod2@gmail.com>
Mon, 9 Jun 2025 14:26:35 +0000 (15:26 +0100)
commit0adb415d128cf54b607b71f1022bbf088ab6ae36
tree72f2e6c24128d017a10f6ea6ef5d8d9afafaba1f
parent82de4cada8669639a8474808db48d63ffade2bcb
PR modula2/119779: ASM examples no longer work

This patch introduces a regression test using the example in the
documentation and tests it using -masm=intel on x86_64-*-gnu systems.

gcc/testsuite/ChangeLog:

PR modula2/119779
* gm2.dg/doc/examples/run/pass/doc-examples-run-pass.exp: New test.
* gm2.dg/doc/examples/run/pass/exampleadd2.mod: New test.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
gcc/testsuite/gm2.dg/doc/examples/run/pass/doc-examples-run-pass.exp [new file with mode: 0644]
gcc/testsuite/gm2.dg/doc/examples/run/pass/exampleadd2.mod [new file with mode: 0644]