summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2014-03-02 15:35:08 +0000
committerflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2014-03-02 15:35:08 +0000
commit92e502512c90d7d38ba75839d8557c0e0146d208 (patch)
treefa67e4aa7bd893e5626714921d07325e04db5daf /tests
parent49331e3655d4850ae8cb8e3688ded9aa4d3dca17 (diff)
downloadfpc-92e502512c90d7d38ba75839d8557c0e0146d208.tar.gz
* set PIC defines earlier, resolve #25788
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@26924 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'tests')
-rw-r--r--tests/webtbf/tw25788.pp17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/webtbf/tw25788.pp b/tests/webtbf/tw25788.pp
new file mode 100644
index 0000000000..7d9c9aa5ce
--- /dev/null
+++ b/tests/webtbf/tw25788.pp
@@ -0,0 +1,17 @@
+{ %norun }
+{ %opt=-Cg }
+{ %fail }
+{ %target=linux,win64,freebsd,darwin }
+
+unit tw25788;
+
+interface
+
+//const a=1; // uncomment this to make it fail as expected
+
+{$ifdef FPC_PIC}
+{$error Don't want this to compile with PIC}
+{$endif}
+
+implementation
+end.