Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4188 from MartinNowak/fix13774
regression test for Issue 13774
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module lib13774a; | ||
|
||
void comdef()() | ||
{ | ||
__gshared int a; | ||
} | ||
|
||
void use1() | ||
{ | ||
comdef(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module lib13774b; | ||
import lib13774a; | ||
|
||
void use2() | ||
{ | ||
comdef(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
src=runnable${SEP}extra-files | ||
dir=${RESULTS_DIR}${SEP}runnable | ||
output_file=${dir}/test13774.sh.out | ||
|
||
if [ $OS == "win32" -o $OS == "win64" ]; then | ||
LIBEXT=.lib | ||
else | ||
LIBEXT=.a | ||
fi | ||
|
||
$DMD -m${MODEL} -I${src} -lib -od${dir} ${src}${SEP}lib13774a.d || exit 1 | ||
$DMD -m${MODEL} -I${src} -lib -od${dir} ${src}${SEP}lib13774b.d ${dir}${SEP}lib13774a${LIBEXT} || exit 1 | ||
|
||
rm ${dir}/{lib13774a${LIBEXT},lib13774b${LIBEXT}} | ||
|
||
echo Success >${output_file} |