summaryrefslogtreecommitdiff
path: root/tests/test
diff options
context:
space:
mode:
authorflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2021-04-29 20:00:36 +0000
committerflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2021-04-29 20:00:36 +0000
commit321c65dd3c12a292127aed7ec0b86570e7b00140 (patch)
tree55fc6908697fe7c59c8e322bd846e0de7aec9a5c /tests/test
parent3953e9448c2fda000fddd0e624d9fa7313d3f0f9 (diff)
downloadfpc-321c65dd3c12a292127aed7ec0b86570e7b00140.tar.gz
+ patch by J. Gareth Moreton: improved tests for constant divisions including benchmark,
second part of #38806 git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@49291 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'tests/test')
-rw-r--r--tests/test/cg/tmoddiv6.pp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test/cg/tmoddiv6.pp b/tests/test/cg/tmoddiv6.pp
new file mode 100644
index 0000000000..0bdd8a97de
--- /dev/null
+++ b/tests/test/cg/tmoddiv6.pp
@@ -0,0 +1,3 @@
+{ %OPT=-O2 }
+{ this benchmark can be used also as a test case }
+{$I ../../bench/bdiv.pp}