summaryrefslogtreecommitdiff
path: root/tests/tbf
diff options
context:
space:
mode:
authorsvenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2>2019-04-14 20:47:43 +0000
committersvenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2>2019-04-14 20:47:43 +0000
commit06c4e2efbbaed66c6ee581004e232ed981f249ec (patch)
tree22f202731d487d3ab56b279a0f8f517f9d769844 /tests/tbf
parent0f67757f6d58a76bb4d561777a67f26c93d8c8f4 (diff)
downloadfpc-06c4e2efbbaed66c6ee581004e232ed981f249ec.tar.gz
* ensure that the correct amount of parameters is used for an operator overload (this is essentially important for unary operators that were declared with two arguments)
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@41868 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'tests/tbf')
-rw-r--r--tests/tbf/tb0268.pp13
-rw-r--r--tests/tbf/tb0269.pp13
-rw-r--r--tests/tbf/tb0270.pp13
3 files changed, 39 insertions, 0 deletions
diff --git a/tests/tbf/tb0268.pp b/tests/tbf/tb0268.pp
new file mode 100644
index 0000000000..c6bfc43b5d
--- /dev/null
+++ b/tests/tbf/tb0268.pp
@@ -0,0 +1,13 @@
+{ %FAIL }
+
+program tb0268;
+
+{$mode objfpc}
+
+operator Not (aArg1: TObject; aArg2: TObject): TObject;
+begin
+end;
+
+begin
+
+end.
diff --git a/tests/tbf/tb0269.pp b/tests/tbf/tb0269.pp
new file mode 100644
index 0000000000..273b006076
--- /dev/null
+++ b/tests/tbf/tb0269.pp
@@ -0,0 +1,13 @@
+{ %FAIL }
+
+program tb0269;
+
+{$mode objfpc}
+
+operator + (aArg1: TObject; aArg2: TObject; aArg3: TObject): TObject;
+begin
+end;
+
+begin
+
+end.
diff --git a/tests/tbf/tb0270.pp b/tests/tbf/tb0270.pp
new file mode 100644
index 0000000000..5cc62a463d
--- /dev/null
+++ b/tests/tbf/tb0270.pp
@@ -0,0 +1,13 @@
+{ %FAIL }
+
+program tb0270;
+
+{$mode objfpc}
+
+operator / (aArg1: TObject): TObject;
+begin
+end;
+
+begin
+
+end.