diff options
author | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2020-05-03 12:41:17 +0000 |
---|---|---|
committer | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2020-05-03 12:41:17 +0000 |
commit | 35d163c77e4fcda31c499bd6e11e3a38484a6747 (patch) | |
tree | aba125d805f7d3c7305d38f555221ef8d5979df3 /tests/tbs | |
parent | 86a2e4eacead3239006a9e73cf7de84906801a54 (diff) | |
download | fpc-35d163c77e4fcda31c499bd6e11e3a38484a6747.tar.gz |
* correctly handle result type of string constant nodes for internally created
nodes
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@45231 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'tests/tbs')
-rw-r--r-- | tests/tbs/tb0671.pp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/tbs/tb0671.pp b/tests/tbs/tb0671.pp new file mode 100644 index 0000000000..ba59e6a78e --- /dev/null +++ b/tests/tbs/tb0671.pp @@ -0,0 +1,20 @@ +{$inline on} +{$mode objfpc}{$H+} + +resourcestring + rs = 'All files'; + +function fs: string;inline; +begin + Result:='*'; +end; + + +function f: String; +begin + Result:=rs+' ('+fs+')|'+fs; +end; + +begin + writeln(f); +end. |