Commit Graph

2635 Commits

Author SHA1 Message Date
Sven/Sarah Barth
34f1a3ee28 * don't insert anonymous functions into a withsymtable
+ added test
2023-06-23 17:02:15 +02:00
Sven/Sarah Barth
7133ad7ecc * a type helper that inherits from another type helper may extend a unique type helper of the parent's extended type (thus allowing to make the type helper of the original type available for the aliased type)
+ added tests
2023-06-23 16:15:33 +02:00
Nikolay Nikolov
5c792c438d + disallow using sizeof() and bitsizeof() on WebAssembly reference types 2023-06-20 16:56:47 +03:00
Nikolay Nikolov
fce34eb4bf + disallow WebAssembly reference types in records, objects and classes 2023-06-20 15:13:15 +03:00
Nikolay Nikolov
2f1ccd6f2a + support 'promising last' exports 2023-06-16 11:00:19 +03:00
Nikolay Nikolov
4d62764fa3 + also allow declaring an external as 'suspending first' 2023-06-13 09:56:44 +03:00
Nikolay Nikolov
0f89852908 + support 'suspending last' externals as well 2023-06-13 09:34:54 +03:00
Nikolay Nikolov
d2396a848b + added a basic JS promise test 2023-06-11 16:59:29 +03:00
Nikolay Nikolov
8eea58f649 + support WebAssembly reference types as WebAssembly globals 2023-06-11 10:31:12 +03:00
Nikolay Nikolov
64569df017 * disallow passing WebAssembly reference types as untyped out parameters as well 2023-06-11 08:58:03 +03:00
Nikolay Nikolov
6ff566350c * disallow passing WebAssembly reference types as untyped var/constref/const parameters 2023-06-11 08:56:27 +03:00
Nikolay Nikolov
acf8fe59d0 * fixed program name in test 2023-06-11 08:32:25 +03:00
Nikolay Nikolov
f670ebbb28 * disallow WebAssembly reference types to be declared as var, constref or out parameters 2023-06-11 08:17:06 +03:00
Nikolay Nikolov
8cd6606970 + support nil comparison of WebAssembly reference types (externref and funcref) 2023-06-11 07:17:04 +03:00
Nikolay Nikolov
9daabb2123 + support using nil constants for setting values of WebAssembly reference types (funcref and externref) 2023-06-11 06:23:02 +03:00
Nikolay Nikolov
7abe3eeb84 + also test that pointers cannot be converted to externref implicitly 2023-06-11 05:56:49 +03:00
Nikolay Nikolov
a47a1c093a * disallow conversion between regular pointers and WasmExternRef 2023-06-11 05:28:39 +03:00
Nikolay Nikolov
021c1a7bb4 * fixed test's program name 2023-06-11 04:29:18 +03:00
Nikolay Nikolov
fcd5ecfcce + some basic tests for WebAssembly funcref types added 2023-06-11 04:27:05 +03:00
Nikolay Nikolov
8743f72f11 + disallow taking the address of WebAssembly externref type 2023-06-11 04:01:58 +03:00
Nikolay Nikolov
65b175cebd + simple test for WasmExternRef 2023-06-11 03:35:25 +03:00
Pierre Muller
148e4abd0a Add aarch64-freebsd c object files 2023-04-24 18:23:01 +02:00
florian
488c389b9b + support FILEEXISTS(...) in preprocessor expressions, resolves #39527
+ tests
  * tscannerfile.readpreproc sets preproc_pattern correctly for quoted strings
2023-03-20 23:17:09 +01:00
florian
f0ac02cb2e * patch by Rika: Remove wrong paranoia (and add correct one (and shorten in general (and fix a bug in))) fpc_dynarray_setlength, resolves #40193 2023-03-12 22:15:55 +01:00
Sergey Larin
62c24b3756 Added test to check WideChar const to UTF8String const conversion 2023-02-24 22:59:39 +00:00
Jinyang He
176462c39a add loongarch64 tests support 2023-02-05 19:18:48 +00:00
Rika Ichinose
b38d13577f Make Utf8CodepointLen adhere to the Unicode standard somewhat more and know all of the Unicode 15.0 combining characters. 2023-01-30 13:51:31 +00:00
J. Gareth "Curious Kit" Moreton
b997e41366 * New tests that evaluate CMOVcc using a reference even if IfRefSafe returns False because the previous condition reads it 2023-01-10 22:23:58 +00:00
J. Gareth "Curious Kit" Moreton
891723111c * New test for extended CMOVcc optimisations 2023-01-10 22:23:58 +00:00
florian
899bdc0016 * first approach to fix tfrldexp on i386-win32 2023-01-06 23:03:40 +01:00
florian
cfbdf90ab0 * patch by Rika to optimize ArcCos, resolves #40078 2023-01-02 18:56:41 +01:00
Sven/Sarah Barth
4c6338207f * fix #40061: the Self of types that aren't implicit pointers (recods, TP-style objects, primitive types (for helpers)) needs to be stored as a Pointer in the Capturer so that modifications are correctly visible
+ added tests
2022-12-30 23:32:00 +01:00
florian
69eebe4c0c + patch by Rika to implement missing TPointF methods, resolves #40057
+ test by Rika
2022-12-29 15:20:49 +01:00
florian
571e0c39cc * increase time out 2022-12-24 17:25:42 +01:00
Michaël Van Canneyt
68cdd7073f * Patch from Ondrej to implement SameArray 2022-12-19 09:56:50 +01:00
Ondrej Pokorny
d1f999100b Add SetToArray and ArrayToSet functions for more general RTTI Set handling 2022-12-18 13:32:15 +00:00
florian
c92056fcac * patches by Rika: Fix a bug in LdExp(extended), and test Math.Frexp/Ldexp implementations instead of own, resolves #40030 2022-12-11 20:04:46 +01:00
florian
bf2911a562 + test for #40025 by Rika, resolves #40025 2022-12-10 21:35:07 +01:00
Pierre Muller
96c63c4443 Fix fcmove instruction for external assemblers 2022-12-10 19:59:05 +00:00
Pierre Muller
a592636d9c Use CMOV and FCMOV with a condition, the parser should reject without a condition 2022-12-10 17:06:35 +00:00
Pierre Muller
d38c24fee7 Add test for avx2 support using cpu unit function avx2support 2022-11-22 22:48:35 +01:00
J. Gareth "Curious Kit" Moreton
735f297f5b * Range check fixes to BZHI tests 2022-11-21 14:44:39 +00:00
Pierre Muller
0f30af07e5 Fix test to succeed for big endian mips 2022-11-12 13:16:51 +00:00
florian
3e6d4bf1cc * new cpu feature tests 2022-11-09 23:09:07 +01:00
florian
12aa48602b + CMOVSupport function 2022-11-08 21:15:11 +01:00
Sven/Sarah Barth
d221f42a57 * ensure that the correct overload is picked for function reference parameters
+ added tests
2022-11-06 22:01:49 +01:00
Rika Ichinose
7243befdb7 Better TBits. 2022-11-06 20:55:38 +00:00
J. Gareth "Curious Kit" Moreton
0dbf40a24c * Added new tests for BZHI optimisations 2022-11-06 15:42:09 +00:00
Ondrej Pokorny
05c45486e8 fcl-image/pasjpeg: handle Exif orientation flag automatically 2022-11-02 09:25:20 +00:00
Pierre Muller
e1b3c03daf Add test for mips code generation bug 2022-10-29 21:34:00 +01:00
Sven/Sarah Barth
e050a019a2 * fix #29859: ensure that it's correctly passed down into generate_specialization whether a unit name was provided for the specialization and if so search the generic only in that unit
+ added tests
2022-10-28 17:40:53 +02:00
Pierre Muller
49ddf159b2 Fix internalerror generated with riscv32 compiler.
Fix
  Compiling ./fcl-passrc/src/pscanner.pp
  pscanner.pp(2512,40) Fatal: Internal error 2006010801
  error generated for riscv32-linux target after commit #c83e6c34
  by correcting expectloc for riscv32 for 64-bit comparisons.
  Add a small test.
2022-10-25 18:42:14 +02:00
florian
3fa77a4f62 * fix life information propagation for while loops, resolves #39971
* warnings/errors fixed which are caused by the new life information propagation
  + test
2022-10-24 22:13:43 +02:00
marcoonthegit
2291100bbd * fix and test for bug #39884 solving daysbetween when zero date is crossed. 2022-10-05 20:46:18 +02:00
Sven/Sarah Barth
4f9acc10f0 * fix #39898: when a loadnode is captured ensure that its nf_load_procvar flag is applied to the subscript node as well
+ added tests
2022-09-20 00:01:49 +02:00
marcoonthegit
533cd82922 * applied patch from Alexey for closes #39704
* reviewed checks at start of function to match Delphi in rangecheck errors and other exits
 * test for the above.
2022-08-17 18:38:02 +02:00
florian
cc66eb27ab * patch by Rika: More numerical stability for Math, resolves #39863 2022-08-14 22:26:09 +02:00
florian
8028a769f4 * ensure that the executable path used in the test is absolute 2022-08-12 22:12:11 +02:00
Nikolay Nikolov
8c9a07a3e8 + added test for wasmglobals, where the globals are declared in the implementation section of a unit 2022-07-31 20:12:11 +03:00
Nikolay Nikolov
6d3da83611 + added test for wasm globals 2022-07-31 19:54:34 +03:00
Michaël Van Canneyt
ff3f183eb2 * Patch from Bart to remove unneeded test 2022-07-02 13:05:00 +02:00
florian
ceda27ae25 * allow type parameters in variant parts of records as we do not now
what type is used during specialization, resolves #39805
2022-06-28 22:45:17 +02:00
Michaël Van Canneyt
ecb4a0abca * Restore display of exception type. fix issue #39811 2022-06-25 14:49:44 +02:00
Michaël Van Canneyt
b2ad1d3efd * Patch from Bart. Fix for issue #39797 2022-06-25 14:33:33 +02:00
Michaël Van Canneyt
53623d7184 * Fix test regressions 2022-06-25 12:48:10 +02:00
florian
3ef7fedfec + forgotten test file added 2022-06-24 22:34:02 +02:00
J. Gareth "Curious Kit" Moreton
2d8b10a5d8 * Improved TESTALL.BAT file for JVM tests 2022-06-23 19:12:14 +00:00
Sven/Sarah Barth
a27bc236a0 * fix #39742: when assigning a function to a function reference it's not the function itself that needs to be checked to be captureable, but instead what it captures (this applies for both the non-generic and the generic case)
+ added tests
2022-05-31 23:16:41 +02:00
Sven/Sarah Barth
0874521a78 + add tests to ensure that the assignment of nested function variables to function references is forbidden 2022-05-31 22:50:14 +02:00
Sven/Sarah Barth
883cc6d697 + add tests that ensure that the overload selection works correctly when functions, methods or nested functions are assigned when overloads for function references are involved as well 2022-05-31 22:50:14 +02:00
Sven/Sarah Barth
7bb1b12b4f + add a mode Delphi equivalent for tanonfunc56 to check whether overload selection works correctly 2022-05-31 22:50:13 +02:00
florian
390084d59e * tests fixed 2022-05-29 10:37:24 +02:00
florian
b810afa193 * test also cmem unit intensively 2022-05-27 23:33:20 +02:00
Pierre Muller
2c9776ac6b Remove %OS by %TARGET, as spotted by Gareth 2022-05-26 21:38:31 +00:00
Sven/Sarah Barth
39b7b07ebb + add tests for function references, anonymous functions and C-blocks 2022-05-26 21:44:25 +02:00
Sven/Sarah Barth
6a9b4a1b13 + apply patch by Blaise.ru: allow initialisation of method pointers with class methods (when class types are
known at compile time)
* adjust error message when a method pointer isn't suitable
+ add tests
2022-05-26 21:42:55 +02:00
Sven/Sarah Barth
bc4eb00a7a * apply patch by Blaise.ru: proper code generation for assigning class non-static methods, accessed via a class reference type, to method pointers
+ added test
2022-05-26 21:42:55 +02:00
Sven/Sarah Barth
6e7a82440e * apply patch by Blaise.ru: avoid internal error when assigning class methods, accessed via a class reference type, to incompatible procvars
+ added tests
2022-05-26 21:42:55 +02:00
Sven/Sarah Barth
a8cf67d73b * apply patch by Blaise.ru: reject assignments of instance methods, accessed via a type, to method pointers
+ add tests
2022-05-26 21:42:54 +02:00
florian
084a4a0563 * made checking for supported targets more fool proof 2022-05-09 22:45:01 +02:00
J. Gareth "Curious Kit" Moreton
3e11b0e870 * New tests for aligned records 2022-05-09 20:03:44 +00:00
florian
c4e85e5d2c * made test compilable if no floating point type support is available 2022-05-06 23:25:36 +02:00
florian
29881ee675 * for now, IO is not supported on AVR 2022-05-03 19:39:09 +02:00
florian
6d6774bcc4 * write number of iterations 2022-05-01 22:42:57 +02:00
florian
9540dc8989 * make test compiling on avr 2022-04-29 23:06:17 +02:00
Sven/Sarah Barth
c0fa45dc92 * a function can't be used to implicitely specialize a specialized procedure variable parameter and vice versa
+ added test
2022-04-22 10:40:58 +02:00
Sven/Sarah Barth
a5f3040da5 * the index of the generic type parameter is not the same index of the paras list
+ added test
2022-04-22 10:40:58 +02:00
Sven/Sarah Barth
90844c2027 * fix #35261: apply slightly adjusted changes by Ryan Joseph to implement support for implicit generic function specializations
The main adjustments were as follows:
  - fixing coding style and identation
  - fixing some typos
  - using a better name for the property in tcallcandidates which holds the symbols created for anonymous parameter values
2022-04-20 18:59:31 +02:00
florian
6bbefcae9e * check more cpuid flags in the cpu units 2022-04-04 22:55:05 +02:00
ccrause
405523ace2 Added test cases for AVR shift by compile time constant. 2022-03-30 20:48:52 +00:00
inoussa
27ed2808dc Unicode 14, Unicode Collation Algorithm 14, CLDR 40 support. 2022-03-15 10:19:15 +00:00
florian
39627cbdfb + AVX512VBMISupport and AVX512VBMI2Support 2022-03-05 20:35:25 +01:00
Sven/Sarah Barth
2a5023508a + add support for forward declarations of generic classes and interfaces (any implicit pointer type really); fixes #34128 2022-02-18 17:54:23 +01:00
Sven/Sarah Barth
b5ce98fec7 + add C/C++ object files for aarch64-win64 compiled with LLVM 13.0.0 2022-02-18 15:23:00 +01:00
florian
67fedc6b5b * handle frac(+/-Inf or Nan) correctly in the software implementation, resolves #39584 2022-02-17 22:00:27 +01:00
florian
9ad2bdcecd + patch by Bart B: TBucketList threw access violations after Clear, resolves #39565
+ test
2022-02-16 23:00:02 +01:00
Jonas Maebe
b97c8bdf55 testobj3: fix test
Use RTL StringRefCount instead of local GetRefCount that only supports some
platforms and depends on the internal layout of ansistring headers
2022-02-12 15:25:19 +01:00
Nikolay Nikolov
2d5f0fbde0 Merge remote-tracking branch 'origin/main' into unicodekvm 2022-02-12 09:28:38 +02:00
florian
79cf1dd9cf + store also ecx and edx after cpuid call with eax=7
+ test VNNI and BIGALG instructions
2022-02-07 21:22:16 +01:00
Nikolay Nikolov
39daa64949 Merge remote-tracking branch 'origin/main' into unicodekvm 2022-02-06 16:35:22 +02:00