diff options
author | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2014-03-02 15:35:08 +0000 |
---|---|---|
committer | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2014-03-02 15:35:08 +0000 |
commit | 92e502512c90d7d38ba75839d8557c0e0146d208 (patch) | |
tree | fa67e4aa7bd893e5626714921d07325e04db5daf /tests | |
parent | 49331e3655d4850ae8cb8e3688ded9aa4d3dca17 (diff) | |
download | fpc-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.pp | 17 |
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. |