Frederic Kehrein
dcabb0151f
Adding fpsockets unit to fcl-net
2024-10-02 07:36:17 +02:00
Frederic Kehrein
23dd7a5173
Adding TNullPtr to types
...
Additional changes:
* Now using TNullPtr instead of custom type in TNullable
* Adding assignment of variants with TNulPtr to avoid name conflicts
* Adding comparison to TNullPtr (Pointers, TObjects, TNullable)
2024-10-02 05:30:09 +00:00
Frederic Kehrein
6ff63107a6
Adding pointer access to nullable
2024-10-01 13:18:39 +00:00
Frederic Kehrein
d3b14eb1ba
Adding tuple unit
2024-09-29 12:49:57 +02:00
Frederic Kehrein
b5a0c3b1b6
Adding some convinience functions to TNullable
2024-09-28 13:05:08 +00:00
Rika Ichinose
fc1050a834
Make use of CPUX86_HINT_BSX_DEST_UNCHANGED_ON_ZF_1 in Bsf*/Bsr*.
2024-09-22 08:33:44 +00:00
florian
8b48127b2c
* as shared libraries without glibc on linux currently don't work, link those tests
...
on current fpc versions and linux always against glibc, so the shared library handling is tested
2024-09-19 22:57:45 +02:00
florian
5c91c89aea
* avr: take advantage of sbiw in mod/div_word
...
+ test
2024-09-11 22:40:10 +02:00
florian
d43d581507
* fix test for non-x86 platforms
2024-09-01 21:19:25 +01:00
Nikolay Nikolov
d561390687
+ increase WebAssembly max memory limit for test tmt1.pp, because the test runs
...
out of memory with the default memory limit of 256 MiB
2024-08-24 13:12:08 +03:00
Nikolay Nikolov
1e630e8a17
+ increase WebAssembly max memory limit for test theapthread.pp, because the
...
test runs out of memory with the default memory limit of 256 MiB
2024-08-22 20:08:35 +03:00
Nikolay Nikolov
e48fdc5b0f
+ added WebAssembly inline asm tests for:
...
i32.clz
i64.clz
i32.ctz
i64.ctz
i32.popcnt
i64.popcnt
2024-07-28 19:32:36 +03:00
Nikolay Nikolov
c1d6cad444
+ added WebAssembly inline asm tests for:
...
i32.rotl
i64.rotl
i32.rotr
i64.rotr
2024-07-28 19:24:02 +03:00
Nikolay Nikolov
5043bdaf18
+ added WebAssembly inline asm tests for:
...
i32.shr_s
i64.shr_s
2024-07-28 19:17:28 +03:00
Nikolay Nikolov
536b85021d
+ added WebAssembly inline asm tests for:
...
i32.shr_u
i64.shr_u
2024-07-28 19:12:12 +03:00
Nikolay Nikolov
a1e4d5a517
+ added WebAssembly inline asm test for:
...
i32.shl
i64.shl
2024-07-28 19:06:20 +03:00
Nikolay Nikolov
3967814081
+ added WebAssembly inline asm test for:
...
i32.and
i64.and
i32.or
i64.or
i32.xor
i64.xor
2024-07-28 18:58:31 +03:00
Nikolay Nikolov
28a849a293
+ added WebAssembly inline asm test for:
...
i32.rem_s
i64.rem_s
i32.rem_u
i64.rem_u
2024-07-28 18:46:48 +03:00
Nikolay Nikolov
3ad7a0e716
+ added WebAssembly inline asm tests for the instructions:
...
i32.div_s
i64.div_s
i32.div_u
i64.div_u
2024-07-28 18:38:32 +03:00
florian
124480e73a
* spelling fixed
2024-07-27 19:51:37 +02:00
Michaël Van Canneyt
429d04089e
* Wrong file copied
2024-07-27 13:21:24 +02:00
Michaël Van Canneyt
87137a4aaa
* Do not include class and array properties in RTTI
2024-07-27 08:21:44 +02:00
Nikolay Nikolov
50c1eb4089
+ added WebAssembly inline asm test for the instructions:
...
i32.mul
i64.mul
f32.mul
f64.mul
2024-07-21 15:23:20 +03:00
Nikolay Nikolov
813427da84
+ added WebAssembly inline asm test for the instructions:
...
i32.sub
i64.sub
f32.sub
f64.sub
2024-07-21 15:03:38 +03:00
Nikolay Nikolov
7f4f254888
+ added test for the WebAssembly inline asm call instruction
2024-07-20 21:54:03 +03:00
Nikolay Nikolov
bbb159658a
+ added basic WebAssembly inline assembler test
2024-07-20 17:08:23 +03:00
Michaël Van Canneyt
b0a82993e6
* Inherit extended RTTI settings from parent object
2024-07-19 16:05:14 +02:00
Michaël Van Canneyt
de1b3a982b
* Do not generate RTTI for generic methods (delphi compatible)
2024-07-19 10:42:41 +02:00
florian
97a5ec0ff4
+ test for Math.RandG based on demo provided by Rika for mr 692
2024-06-27 22:14:40 +02:00
florian
e2ed90d40f
* extended test
...
* fixed error numbers
2024-06-08 11:11:10 +02:00
florian
f2bcf407f3
+ test for Sysutils.Trim*
2024-06-07 23:28:08 +02:00
florian
d5ab671ec3
* patch by Marģers: patch to enable ENTER asm instruction
...
+ test
2024-05-29 23:15:09 +02:00
florian
a6fe41f3f6
* decrease failure rate
2024-05-28 23:21:40 +02:00
florian
5a59ffdca7
* extended with a Chi square test to check if the random values are equally distributed
2024-05-26 23:16:50 +02:00
florian
a9c88ace25
* handle unary minus in the preprocessor, resolves #40782
2024-05-13 22:36:40 +02:00
florian
6a109634b0
* extended test to include the test case for #40732
2024-04-27 18:44:59 +02:00
florian
80e8dce98f
* remove unused variables
2024-04-02 16:41:24 +02:00
florian
f28cbbf73b
* run test with different options as it is tricky
2024-03-27 22:40:06 +01:00
J. Gareth "Curious Kit" Moreton
889c55ecae
* "tminmax" test now prints out 'ok' if it passes and the error code if it fails
2024-03-27 02:56:44 +00:00
florian
20f9b82543
* AArch64: overflow checking for abs
...
* tabs adapted: also abs(longint) must overflow check on 64 bit platforms
2024-03-24 12:47:16 +01:00
florian
367beaaef4
+ extend test to test overflow checking
2024-03-23 22:21:42 +01:00
florian
57a1b5a39b
* fix test for i386
2024-03-10 23:02:38 +01:00
florian
11f076f0e7
+ CMPXCHG16BSupport
2024-02-28 22:18:42 +01:00
Pierre Muller
a3b730b0f1
Add POPCNTSupport call to avoid use of unsupported instruction
2024-02-15 09:01:04 +00:00
florian
2575cbc439
* complain about turned off support of c style operators only in the parser,
...
so error recovery is better
2024-02-11 11:05:05 +01:00
florian
272417e602
* while on windows the max. possible year should be 1980+127=2127, 2104 causes an error (seems to be limited to 2099), so stay with 2096
2024-01-27 20:38:06 +01:00
J. Gareth "Curious Kit" Moreton
038c163717
* New CG tests for verifying tvecnode.simplify correctness
2024-01-21 11:56:09 +00:00
florian
08e494ffd1
* extended test
2024-01-21 11:32:28 +01:00
J. Gareth "Curious Kit" Moreton
0418078805
* Added unsigned versions of the "tval" tests
2024-01-13 22:24:08 +00:00
J. Gareth "Curious Kit" Moreton
e6d32f9f36
* Added new "tval2" test that assigns constant string symbol
2024-01-13 22:24:08 +00:00
J. Gareth "Curious Kit" Moreton
d8079ea239
* New "tval1" test to verify that Val with constants works properly
2024-01-13 22:24:08 +00:00
Sven/Sarah Barth
bb5b9acbb2
* ensure that TObject.FieldAddress returns the same values as accessing the RTTI directly
2024-01-12 23:49:46 +01:00
Nikolay Nikolov
a8b4c0772c
* fixed bug that caused 'c in ['a'..'z']' to fail on the WebAssembly target, when code is compiled with {$packset 1}
2024-01-10 03:11:13 +02:00
Sven/Sarah Barth
98a25439c3
+ add a test that checks for correct working of the legacy method table
2024-01-07 18:09:51 +01:00
Michaël Van Canneyt
a98462835e
* Extended RTTI tests
2024-01-02 07:24:31 +01:00
Sven/Sarah Barth
7eea850726
* TVmtFieldEntry.FieldOffset needs to be SizeUInt instead of PtrUInt, so that it works correctly on the various memory models of i8086 as well
...
+ added test
2024-01-02 07:09:19 +01:00
Sven/Sarah Barth
ad61db2ff5
* allow a nested function that calls itself can be converted to a function reference
...
+ added test
2023-12-30 14:47:38 +01:00
Sven/Sarah Barth
74833bda09
* split the two error cases of tanonfunc25 into two different tests
2023-12-30 13:58:09 +01:00
Sven/Sarah Barth
787454d5b2
* correctly handle managed function results when converting a global or nested function to a function reference
...
+ added test
2023-12-29 20:55:37 +01:00
Jonas Maebe
2db4cae7aa
nested procvars: support assignments when switch not active
...
Support assigning one nested procvar to another even when the nestedprocvars
modeswitch is not active. This can happen when the type was declared in a
different unit that was compiled with this modeswitch, or in internally
generated wrapper code (which uses "pure" objfpc mode)
2023-11-25 22:35:55 +01:00
Rika Ichinose
a55da71b23
Add tests for IndexQWord, and shorten tindex.pp.
2023-11-18 21:54:05 +00:00
Jonas Maebe
340d389e20
cpptcl1.o: recompiled with -fno-exceptions
...
As identified by @modersohn, resolves #40501
2023-11-16 23:03:13 +01:00
J. Gareth "Curious Kit" Moreton
cc3f4508fd
* a64: New CG tests for evaluating correct EON instructions
2023-11-08 21:07:00 +00:00
florian
de69f1d858
* moved files to appropriate location
2023-11-01 10:09:40 +01:00
Rika Ichinose
dba8138175
Refactor promotional features of StrUtils.
2023-11-01 09:02:27 +00:00
Michaël Van Canneyt
9f3a50315b
* Enable function references and anonymous functions in Delphi mode
2023-10-31 08:42:28 +01:00
Rika Ichinose
9382070454
Refactor and fix a bug in Boyer-Moore.
2023-10-28 06:56:15 +00:00
Pierre Muller
ad637e8f09
Fix range error in tstruth2bu.pp test
2023-10-10 16:33:44 +00:00
Michaël Van Canneyt
ab4db7f475
* Fix OnChange being fired twice when adding an object. Fixes issue 40261
2023-10-02 22:17:59 +02:00
Frederic Kehrein
ba55932929
Fixing trying to consume ID for anonymous switch field
2023-09-28 22:42:49 +00:00
Rika Ichinose
324b77f317
Let fpc_dynarray_concat(_multi) reuse the only nonempty input or append to the destination if possible.
...
Improve fpc_dynarray_delete.
2023-09-12 20:58:50 +00:00
Sven/Sarah Barth
3b455c1cf2
* fix #40390 : implement support for handling parameter names (including __SELF and __HIGH(<identifier>)) that resolve directly to registers
...
+ added tests
2023-09-08 17:30:32 +02:00
Sven/Sarah Barth
7f290c27ed
* fix name of test
2023-09-08 16:11:13 +02:00
Sven/Sarah Barth
8fa439e64d
+ add some tests for hint directives in context of arrays (both with the element and the index) that check that the hint is indeed generated
2023-09-08 15:23:55 +02:00
Sven/Sarah Barth
98fc58b229
+ add a test that check for correct functionality of all the SwapEndian() overloads
2023-09-08 15:02:51 +02:00
Pierre Muller
0210254b2d
Fix wrong index error
2023-09-07 22:54:55 +02:00
Rika Ichinose
1c4151d82e
Remake AdjustLineBreaks.
...
This version is correct and supposedly better in other ways (except for a bit of clarity maybe).
2023-08-29 20:08:03 +00:00
florian
15e7dd3d9f
* patch and test by Rika: Redirect StrUtils.RPos to StrUtils.RPosEx, fix a bit, improve a bit, resolves #40394
2023-08-27 22:33:00 +02:00
florian
fb391d571a
* another test renamed
2023-08-27 10:48:15 +02:00
florian
e1f7b50985
* renamed tests so they are actually run
2023-08-27 10:09:40 +02:00
ccrause
9440b17eea
[AVR] Add command line options to selectively remove portions of the RTL startup code.
2023-08-15 21:33:58 +00:00
Michaël Van Canneyt
56a906a421
* Hex2Bin Delphi-compatible overloads. Fixes issue #38712
2023-08-12 14:59:07 +02:00
Michaël Van Canneyt
fd39fd96b3
* Add enumerator for TStringBuilder. Fix issue #37088
2023-08-12 14:33:50 +02:00
Sven Barth
82dd70e72f
* fix parameter alignment on x86_64 when more than 6 parameters are involved (aka the stack is used)
...
+ added test
2023-08-03 22:34:28 +02:00
Michaël Van Canneyt
8ca4afd2d0
* Tests for NAMESPACES directive
2023-07-26 09:55:12 +02:00
Michaël Van Canneyt
6e84d4275d
* Fix for tmarshaller big endianness
2023-07-24 21:51:09 +02:00
Michaël Van Canneyt
b5433100f4
* cwstring for unix
2023-07-23 23:15:55 +02:00
Rika Ichinose
7f4420495b
TMarshal & TMarshaller, strange things from Delphi.
2023-07-22 15:24:27 +02:00
Pierre Muller
e1a216a4aa
Add test about bus error generated in sparc compiler
2023-07-16 02:16:56 -05:00
Michaël Van Canneyt
4beda764aa
* Tests for webassembly invoke helper
2023-07-13 07:32:21 +00:00
Michaël Van Canneyt
82ed35ead0
* Test adapted: RTTI is enabled for raw interfaces
2023-07-11 08:36:57 +00:00
Michaël Van Canneyt
d472c920ba
* Hidden thunk class tests for webassembly
2023-07-11 08:36:57 +00:00
Nikolay Nikolov
adf843196a
Merge remote-tracking branch 'origin/main' into wasm_js_promise_integration
2023-06-24 15:08:18 +03:00
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