Commit Graph

216 Commits

Author SHA1 Message Date
ivost
b2235eb873 * new negative test cases for interface to TGuid/Shortstring assign
git-svn-id: trunk@12724 -
2009-02-08 21:24:28 +00:00
Jonas Maebe
b3aa2ab759 + new test which should fail but doesn't yet (it should not be possible to
use a char typecasted as a chararray with more than one element as an
    lvalue)

git-svn-id: trunk@12708 -
2009-02-07 22:20:47 +00:00
Jonas Maebe
53213844d8 + new test (not yet fixed)
git-svn-id: trunk@12050 -
2008-11-11 20:20:29 +00:00
Jonas Maebe
e5920bc2b8 * delay verbosity changes just like localswitches changes
* store a node's verbosity in the node so that e.g. disabling warnings
    also disables warnings for this node in pass_1
   (the above together fix mantis #12076)
  * save/restore verbosity with {$push}/{$pop} (mantis #12075)
  * if warnings/notes/hints are turned off, also do not count encountered
    ones for the totals (otherwise -Sew cannot be used properly in
    combination with {$warnings off}, because disabled warnings will still
    trigger a compiler error) -- this required adding -vw/-vn/-vh to all
    tests using -Sew/-Sen/-Seh
  - removed some superfluous state saving/restoring from firstpass()

git-svn-id: trunk@12025 -
2008-11-03 21:18:27 +00:00
florian
57f3e2f40a * forbid access to properties in class methods
* readability fix

git-svn-id: trunk@11838 -
2008-09-28 20:16:13 +00:00
florian
d2214685c3 * fixes compiler crash with out of memory on illegal array declarations
git-svn-id: trunk@11505 -
2008-08-03 10:34:41 +00:00
tom_at_work
f11cf59854 * tests for checking type casts from integers/enums to TObjects in Delphi and non-Delphi mode (see r11398)
git-svn-id: trunk@11400 -
2008-07-18 15:53:37 +00:00
florian
050627ea1d * allow goto inside finally blocks
git-svn-id: trunk@11392 -
2008-07-17 19:49:38 +00:00
Jonas Maebe
87aa666768 + test I still had lying around
git-svn-id: trunk@10950 -
2008-05-12 09:51:19 +00:00
florian
4a243d451f + support of -Mxxx or $modeswitch to enable single mode specific features
git-svn-id: trunk@10936 -
2008-05-10 22:04:53 +00:00
Jonas Maebe
08ccb30e3b * perform real "exactness" checking for open array parameters
git-svn-id: trunk@9624 -
2008-01-04 12:54:47 +00:00
Jonas Maebe
61522d00a2 * fixed tests now that i386 assembler code is checked for correct PIC
usage in case PIC generation is on (some by adding PIC-versions of
    the assembler code, most by adding -Cg- to the options to be used).

    Note: the Intel assembler reader does not yet support the Delphi
    PIC construct, so tests with that (like test/tasmread and test/tcg1)
    do not work with -Cg on non-Darwin (Darwin needs a different PIC
    construct)

git-svn-id: trunk@9370 -
2007-12-01 14:34:50 +00:00
Jonas Maebe
f1f1f1c7cd + tests for wrong relsymbol usage
git-svn-id: trunk@9369 -
2007-12-01 14:27:45 +00:00
Jonas Maebe
1ee8207ffa * fixed mantis #9522: no longer allow typecasting ordinal constants
to complex types (caused a lot of internal errors later on, and
    was also Delphi-incompatible)

git-svn-id: trunk@8369 -
2007-09-03 15:55:26 +00:00
Jonas Maebe
eddc507a13 * disallow widechar sets (Delphi 7 compatible, and were handled wrongly
by FPC previously)
  * tbs/tb0474 now fails -> renamed to tbf/tb0201 (+ new test tbf/tb0202)

git-svn-id: trunk@8284 -
2007-08-14 14:27:59 +00:00
daniel
dafc044cea * tb0201 should now succeed, move & rename it to tbs/tb0540
* Add %FAIL & %NORUN to tb0200.

git-svn-id: trunk@7826 -
2007-06-26 17:43:41 +00:00
daniel
9eccba45e9 * Improve test.
git-svn-id: trunk@7824 -
2007-06-26 17:28:21 +00:00
daniel
eef2d4a1df + Discovered a bug regarding string bounds checking, add tests for it.
git-svn-id: trunk@7823 -
2007-06-26 17:23:49 +00:00
daniel
02732bfb55 * Fix tests for constexprint rework.
git-svn-id: trunk@7638 -
2007-06-13 07:30:09 +00:00
pierre
d7e6f9f701 * add test for wrong code that should generate an error
git-svn-id: trunk@7113 -
2007-04-16 09:35:47 +00:00
florian
fef643654b * moved
git-svn-id: trunk@7066 -
2007-04-06 21:20:28 +00:00
florian
56e30e75af * don't crash on invalid property declarations, resolves #8451
git-svn-id: trunk@7065 -
2007-04-06 21:18:10 +00:00
florian
b8af065523 * do check for non defined labels earlier to avoid ies in the cg
git-svn-id: trunk@6698 -
2007-03-03 14:52:46 +00:00
Jonas Maebe
67edbb1fa0 * corrected reference to test which should succeed
git-svn-id: trunk@6269 -
2007-01-30 14:39:49 +00:00
Jonas Maebe
f2b07704b5 * proper initialised/used warnings for variables used
in complex with-statements + tests

git-svn-id: trunk@6024 -
2007-01-17 12:04:53 +00:00
Jonas Maebe
7f24462fcb * warn when doing not(uninitialised_variable)
git-svn-id: trunk@6000 -
2007-01-16 16:34:44 +00:00
florian
ad7e261a04 * forbid to take the address of a label defined outside of the current procedure
git-svn-id: trunk@5974 -
2007-01-14 19:21:37 +00:00
Jonas Maebe
3610a8eb53 * fixed test parameters
git-svn-id: trunk@5815 -
2007-01-05 09:50:45 +00:00
Jonas Maebe
2ddeca21e6 * don't give warning about constructing instance with abstract methods
for self.create calls + tests

git-svn-id: trunk@5810 -
2007-01-04 13:02:23 +00:00
Jonas Maebe
e5a1d628eb * fixed one regression in r5682: implementation declarations with a
calling convention that has different hidden parameters than the
    interface declaration no longer compiled in Delphi mode (e.g.
    webtbs/tw7329.pp on i386)
  * fixed remaining declaration parsing incompatibilities in TP/Delphi
    modes (other modes already gave errors for the things below):
    * give an error for "function a: byte;" in interface followed by
      "procedure a;" in implementation ("function a;" in implementation
      still allowed as in TP/Delphi)
    * give an error for "function a(b: byte):byte" in interface
      followed by "function a: byte;" in implementation (if one parameter
      or return type is specified in implementation, everything must
      be repeated -- "function a;" still allowed)
  * copied webtbs/tw0890.pp to webtbf/tw0890a.pp since it now correctly
    fails, and modified webtbs/tw0890.pp so it doesn't fail with the
    new code

git-svn-id: trunk@5688 -
2006-12-23 11:17:21 +00:00
florian
b3ac0f5d98 * another test
git-svn-id: trunk@5172 -
2006-11-02 09:55:59 +00:00
florian
4c76107b98 * limited generics to records, classes, objects and interfaces
git-svn-id: trunk@5171 -
2006-11-02 09:48:17 +00:00
florian
1275e7d109 * forbid usage of TYPE and VAR inside of common classes/objects
git-svn-id: trunk@5170 -
2006-11-02 09:12:59 +00:00
florian
9a1b9071a5 * implemented kylix like local directive, fixes #7242
git-svn-id: trunk@4982 -
2006-10-19 20:26:14 +00:00
Jonas Maebe
b02495645f * fixed test
git-svn-id: trunk@4882 -
2006-10-13 12:54:55 +00:00
micha
f47f8e6af1 add tests for untyped pointer arithmetic warnings
git-svn-id: trunk@4820 -
2006-10-07 16:28:21 +00:00
Jonas Maebe
378e7fb3d4 + added
git-svn-id: trunk@3921 -
2006-06-22 09:39:36 +00:00
Jonas Maebe
f174d2f937 + added { %fail }
git-svn-id: trunk@3200 -
2006-04-13 09:00:40 +00:00
Jonas Maebe
6c5f9c7f65 + added test for empty {$calling }
git-svn-id: trunk@3197 -
2006-04-12 12:22:05 +00:00
peter
08aea3b7fb * nested for loop with same counter
git-svn-id: trunk@2764 -
2006-03-05 18:58:55 +00:00
Jonas Maebe
b610622ce1 + test for out-initialised checking
git-svn-id: trunk@2488 -
2006-02-08 20:34:16 +00:00
peter
30130d41be * more tests for symtable insert/search
git-svn-id: trunk@2406 -
2006-02-02 13:41:17 +00:00
peter
47c1bb60b4 * remove svn:executable from *.pp and *.pas
git-svn-id: trunk@1997 -
2005-12-20 08:11:59 +00:00
tom_at_work
f4bb92c0d5 * removed some 32 bit specific test programs from the tests for ppc64
git-svn-id: trunk@1598 -
2005-10-26 19:43:50 +00:00
peter
f1af7cfe8f * generate implicit 0+<x> for +<x> expressions
git-svn-id: trunk@1556 -
2005-10-21 07:46:14 +00:00
peter
1f0a20fd18 * missing fail
git-svn-id: trunk@547 -
2005-06-30 15:13:09 +00:00
peter
c1b2e1aac5 * check function/procedure type when adding a proc definition
git-svn-id: trunk@546 -
2005-06-30 14:56:05 +00:00
florian
abbc85bb78 + strict protected and strict private support
git-svn-id: trunk@512 -
2005-06-28 19:23:39 +00:00
fpc
790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00
fpc
50778076c3 initial import
git-svn-id: trunk@1 -
2005-05-16 18:37:41 +00:00
peter
e417e34496 * truncate log 2005-02-14 17:13:06 +00:00
peter
2dbc4a8d6b * new bugs 2005-01-31 16:55:47 +00:00
peter
ec433f758a * arithmetic overflow checking at compile time 2005-01-25 15:41:51 +00:00
florian
a6549318c7 no message 2005-01-19 23:20:12 +00:00
florian
5d11e3a5a3 no message 2005-01-06 13:42:43 +00:00
peter
1f27423e32 * removed, compiler can compile the code 2004-12-26 20:09:00 +00:00
peter
735a5ca27c * new bug 2004-12-26 12:36:38 +00:00
peter
cc33cec223 * new bug 2004-11-26 22:32:18 +00:00
Jonas Maebe
b45bdb4991 + added 2004-11-26 19:35:04 +00:00
peter
0be40bde03 * 64bit 2004-11-01 23:22:01 +00:00
peter
c7efb1b2a7 * allowed for 64bit 2004-11-01 22:34:47 +00:00
peter
877551b144 * new bugs 2004-08-22 12:05:29 +00:00
florian
0debc54f69 * aded { %fail } 2004-05-26 20:32:25 +00:00
florian
5cd52d5a42 no message 2004-05-24 20:34:22 +00:00
peter
1d3a5019b8 * fail added 2004-05-23 11:28:27 +00:00
florian
17c92356a8 no message 2004-05-23 11:03:20 +00:00
olle
aa9fbc040e + test that the compiler should not allow non local goto 2004-05-18 10:35:15 +00:00
olle
40c6690206 + Added test 2004-05-12 10:47:59 +00:00
peter
e9bc080c22 * variant bug 2004-05-02 11:08:11 +00:00
peter
6ced282cbc * operator overload not allowed 2004-03-18 16:22:06 +00:00
daniel
8fb9867f9c + Added tb0160 2004-02-28 10:52:05 +00:00
Jonas Maebe
2d05b23107 * moved tb0151 from tbf to tbs 2003-12-29 13:15:48 +00:00
daniel
213f373613 * 2 tests for integer constant to pointer conversion 2003-12-16 10:27:47 +00:00
Jonas Maebe
9ea689fc74 * added fail 2003-11-22 13:15:09 +00:00
Jonas Maebe
f35267db01 + test for double usage of units 2003-11-22 12:35:12 +00:00
florian
d3069c806e no message 2003-11-08 23:34:09 +00:00
peter
6939e0e4d4 * removed knowncompilererror10 2003-10-31 16:11:47 +00:00
peter
368dc723c0 * this is a valid construct 2003-10-29 15:36:33 +00:00
peter
d0b694e633 * 1.0.x test only 2003-10-20 16:55:26 +00:00
peter
79935db87c * test is now passed successfully to be delphi compatible 2003-09-14 12:56:28 +00:00
peter
a283810536 * overloading test for multiple implementations 2003-09-14 12:45:39 +00:00
peter
86c4522697 * cdecl methods are required for CLX compatibilit 2003-04-23 12:38:12 +00:00
peter
732743c991 * rte 211 when error at left site 2003-03-25 19:26:34 +00:00
pierre
dbb291bc0b * test only with longint to byte typecast 2003-03-10 11:04:52 +00:00
pierre
291f66991e * check that doubleaddr are refused in fpc mode 2003-02-17 16:00:17 +00:00
peter
40cedf1682 * 1.1 only, needed changes are to big for 1.0.x 2003-01-15 01:05:51 +00:00
peter
0653404f70 * methodpointer 2 procvar test 2003-01-05 22:21:03 +00:00
peter
0e8975b033 * 1.1 only 2003-01-05 18:14:57 +00:00
peter
35dc8b860e * popstack missing in implementatio 2003-01-05 18:14:50 +00:00
peter
e8c303d73e * test should fail 2003-01-01 21:09:57 +00:00
peter
0692123640 * delphi mode only 2003-01-01 21:09:49 +00:00
florian
3f7df8d402 *** empty log message *** 2002-12-31 13:20:46 +00:00
peter
f19c7200bb * test should succeed 2002-12-27 14:50:23 +00:00
peter
b9724e3235 * go32v2 test 2002-12-27 14:50:14 +00:00
peter
06c7671945 * changed $ifdefs to %target
* removed obsolete dpmiexcp unit for go32v2
2002-12-24 22:31:26 +00:00
michael
721dbde363 + Fixed 1.1 version flag 2002-12-20 14:44:03 +00:00
florian
ea251167b4 * made the test >=1.1 only 2002-12-20 13:14:08 +00:00
peter
2e4fdfd4ec * Class(classref) should not be allowed 2002-12-18 16:26:51 +00:00
carl
4cff8c3477 + set testing 2002-11-30 18:46:30 +00:00
carl
f274f1baad * some small fixes
+ added several new tests
2002-11-26 19:24:30 +00:00