summaryrefslogtreecommitdiff
path: root/tests/tbf
diff options
context:
space:
mode:
authorsvenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2>2018-06-22 21:29:08 +0000
committersvenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2>2018-06-22 21:29:08 +0000
commit3901e58f15d0e10e70238b677ffae46e51b40829 (patch)
tree429f3a4364f1920e04aa241af9081296f3cab244 /tests/tbf
parentac6b1a94b1175aa782a50229eaff114041bd7ec8 (diff)
downloadfpc-3901e58f15d0e10e70238b677ffae46e51b40829.tar.gz
* extend scanning of $modeswitch to support not only + and -, but also ON and OFF like other switches
+ added tests git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@39280 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'tests/tbf')
-rw-r--r--tests/tbf/tb0257a.pp25
-rw-r--r--tests/tbf/tb0257b.pp25
2 files changed, 50 insertions, 0 deletions
diff --git a/tests/tbf/tb0257a.pp b/tests/tbf/tb0257a.pp
new file mode 100644
index 0000000000..07d673a5e7
--- /dev/null
+++ b/tests/tbf/tb0257a.pp
@@ -0,0 +1,25 @@
+{ %FAIL }
+
+unit tb0257a;
+
+{$mode delphi}
+{$modeswitch advancedrecords-}
+
+interface
+
+type
+ TTest = record
+ procedure Test;
+ end;
+
+implementation
+
+{ TTest }
+
+procedure TTest.Test;
+begin
+
+end;
+
+end.
+
diff --git a/tests/tbf/tb0257b.pp b/tests/tbf/tb0257b.pp
new file mode 100644
index 0000000000..795f73fc2a
--- /dev/null
+++ b/tests/tbf/tb0257b.pp
@@ -0,0 +1,25 @@
+{ %FAIL }
+
+unit tb0257b;
+
+{$mode delphi}
+{$modeswitch advancedrecords off}
+
+interface
+
+type
+ TTest = record
+ procedure Test;
+ end;
+
+implementation
+
+{ TTest }
+
+procedure TTest.Test;
+begin
+
+end;
+
+end.
+