Commit Graph

222 Commits

Author SHA1 Message Date
Jonas Maebe
428306051f * give again an error for "in" operations on incompatible set
elements/sets after introduction of support for "longint in set"

git-svn-id: trunk@6885 -
2007-03-16 19:44:43 +00:00
Jonas Maebe
ac585ea201 * fixed test according to Kylix behaviour (which means current
FPC behaviour is wrong)

git-svn-id: trunk@6851 -
2007-03-14 18:27:01 +00:00
florian
85189db6fe * test fixed, hopefully
git-svn-id: trunk@6810 -
2007-03-12 20:04:27 +00:00
pierre
3dacee1f38 * fix test failure if -Cr option is used
git-svn-id: trunk@6690 -
2007-03-01 13:46:40 +00:00
florian
da23643459 * new test to avoid regression
git-svn-id: trunk@6653 -
2007-02-25 19:04:09 +00:00
florian
fd392dc2b6 * allow inherited; calling abstract methods in delphi mode, resolves #5896
git-svn-id: trunk@6651 -
2007-02-25 18:46:10 +00:00
florian
301be02148 * forbid anonymous generic specializations
git-svn-id: trunk@6627 -
2007-02-24 10:06:53 +00:00
Jonas Maebe
674660d53b * getting the length of a string means that it has to be
valid and marks it as really read (mantis #8264)

git-svn-id: trunk@6327 -
2007-02-03 21:28:44 +00:00
Jonas Maebe
4e96fe8fac * fixed with-support for classrefdefs (mantis 8150), with thanks to
Thorsten Engler for supplying an initial patch

git-svn-id: trunk@6088 -
2007-01-20 20:04:54 +00:00
Jonas Maebe
e78568ba69 * test no longer has to fail in objfpc mode (in theory, it should fail
in Delphi mode though)

git-svn-id: trunk@6077 -
2007-01-19 19:33:04 +00:00
Jonas Maebe
6c05674d51 * fixed overload checking of virtual and class methods (mantis #8140)
* fixed "overload" keyword checking in Delphi mode

git-svn-id: trunk@6074 -
2007-01-19 17:20:36 +00:00
Jonas Maebe
b86e2aa33a * fixed crash when compiling certain invalid "in" constructions
(mantis 8031)

git-svn-id: trunk@5748 -
2006-12-29 23:13:02 +00:00
Jonas Maebe
b2da1c43e7 + added (fixed in r5682)
git-svn-id: trunk@5722 -
2006-12-26 18:25:04 +00:00
Jonas Maebe
66a07eba3e * give an error if the same method declaration is added twice to an
interface/class/object (mantis 8019)

git-svn-id: trunk@5721 -
2006-12-26 18:12:56 +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
Jonas Maebe
2b9bdf2155 * fixed mantis 6631, 7322 and 7989: check parameters and return
types of interface methods implemented in a class

git-svn-id: trunk@5686 -
2006-12-22 19:50:52 +00:00
daniel
3684d76e9e * Make it a test that should succeed.
git-svn-id: trunk@5643 -
2006-12-19 08:49:26 +00:00
Jonas Maebe
3bb41dcf9a * fixed writing "packed" status of bitpacked records to ppu files.
Not sure how it ever worked, nor how exactly symtable ppu entries
    work -- but it's now stored with the recorddef (which also means
    that bitpacking is disabled currently for objects and classes,
    since they are based on tabstractrecorddef rather than trecorddef)

git-svn-id: trunk@4679 -
2006-09-21 20:39:36 +00:00
peter
22657a363b * pass context class to searchsym_in_class to fix the visibility
of protected members called from a named class in a child class
    that also has the visibility for those protected members

git-svn-id: trunk@4384 -
2006-08-07 19:10:11 +00:00
yury
f9f7531db6 * skip tdir test for wince.
* tw1633 test for i386 only.
* removed SWI instruction in tw4722 test. It is not supported for arm-wince and do not needed for test.

git-svn-id: trunk@4093 -
2006-07-05 15:55:52 +00:00
florian
3c07574d4f + new tests
git-svn-id: trunk@3697 -
2006-05-27 15:30:53 +00:00
florian
e192729213 * test for previous fix
git-svn-id: trunk@3686 -
2006-05-26 19:07:36 +00:00
florian
5aa65dcec9 + new tests
git-svn-id: trunk@3647 -
2006-05-23 18:54:30 +00:00
peter
95be416b9d * don't allow stringconst+integer
* change booleans in arraydef to set
  * set option in arraydef to indicate a constant string so
    a nicer type can be shown instead of array[0..x] of char

git-svn-id: trunk@3051 -
2006-03-27 07:22:02 +00:00
Jonas Maebe
ed910b5d31 * support goto/label by default in tp/delphi/macpas modes (bug 4893)
git-svn-id: trunk@2958 -
2006-03-18 22:25:41 +00:00
Jonas Maebe
f59d552ecb * fixed web bug #4913 (don't allow indexing of strings/variants/pointers
with enums/chars/booleans)

git-svn-id: trunk@2952 -
2006-03-18 11:05:04 +00:00
Jonas Maebe
eaf18ed0d1 * moved to webtbs
git-svn-id: trunk@2620 -
2006-02-18 18:02:50 +00:00
Jonas Maebe
96d6a4d68c * fixed test
git-svn-id: trunk@2619 -
2006-02-18 18:02:18 +00:00
Jonas Maebe
a977fc06cc + added
git-svn-id: trunk@2609 -
2006-02-16 16:03:33 +00:00
Jonas Maebe
92c389aaeb * fixed web bug #4778 (explicit type casting of float to int in tp/delphi
keeps the bit pattern instead of converting)

git-svn-id: trunk@2509 -
2006-02-10 11:05:47 +00:00
Jonas Maebe
5007ae7197 * fixed web bug #4724 (don't allow inc/dec(pointer,pointer)
* more accurate error postitions for inc/dec errors

git-svn-id: trunk@2502 -
2006-02-09 18:18:47 +00:00
Jonas Maebe
765fe2b2ab * fixed bug #4737 (check for potential range errors in for-loop
assignment, report correct column for potential range errors of
    call parameters)
  * refactored code to check potential range check errors (check_ranges
    in htypechk)

git-svn-id: trunk@2501 -
2006-02-09 17:39:22 +00:00
peter
cbf91de10f * new test
git-svn-id: trunk@2494 -
2006-02-09 07:54:25 +00:00
Jonas Maebe
3b93263965 + added missing -vw option
git-svn-id: trunk@2482 -
2006-02-08 19:44:36 +00:00
Jonas Maebe
414bad118b * moved to webtbf, since tests have to fail
git-svn-id: trunk@2481 -
2006-02-08 19:44:05 +00:00
Jonas Maebe
a42730b1f3 + added
git-svn-id: trunk@2416 -
2006-02-03 16:23:41 +00:00
Jonas Maebe
cc7ff349cd * fixed tw4764
git-svn-id: trunk@2414 -
2006-02-03 14:57:55 +00:00
Jonas Maebe
09a668dac9 * check whether loop counters are valid for assignment (bug 4695)
git-svn-id: trunk@2285 -
2006-01-14 14:09:39 +00:00
Jonas Maebe
21d51d8815 + tests for web bugs 3183 and 4403
git-svn-id: trunk@2170 -
2006-01-04 22:47:28 +00:00
Jonas Maebe
6d3ae16267 * fixed web bug #4647 (untyped elements in array constructors) + test
git-svn-id: trunk@2110 -
2006-01-01 20:43:28 +00:00
Jonas Maebe
cbb59be2f1 * fixed web bug #4651 + test
git-svn-id: trunk@2108 -
2006-01-01 20:19:38 +00:00
Jonas Maebe
25bc4956a2 + added
git-svn-id: trunk@2039 -
2005-12-23 21:20:36 +00:00
peter
47c1bb60b4 * remove svn:executable from *.pp and *.pas
git-svn-id: trunk@1997 -
2005-12-20 08:11:59 +00:00
peter
dfd9b6e862 * property index is always a s32int
* property implementations must match parameters equal

git-svn-id: trunk@1995 -
2005-12-20 07:58:38 +00:00
peter
767291ca5f * refactor reading and setting of parent classes
git-svn-id: trunk@1992 -
2005-12-19 12:24:45 +00:00
florian
aa22e57a7e * fixed issue with static fields
git-svn-id: trunk@1803 -
2005-11-22 22:08:11 +00:00
tom_at_work
487c4f76a4 * more testbench fixes
git-svn-id: trunk@1600 -
2005-10-26 21:42:20 +00:00
peter
5a00f019d8 * remove old test
git-svn-id: trunk@1473 -
2005-10-18 12:30:04 +00:00
peter
539b7dc220 * setting the compile mode should set the preprocessor symbol directly
git-svn-id: trunk@1457 -
2005-10-18 06:57:39 +00:00
peter
4c73e86058 * check for allowed floatdef operations
git-svn-id: trunk@1455 -
2005-10-18 05:45:50 +00:00