mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
19 lines
719 B
Bash
Executable file
19 lines
719 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
|
|
# Test that file paths larger than 248 characters can be used
|
|
# Test CRLF and mixed line ending handling in D lexer.
|
|
|
|
test_dir=${OUTPUT_BASE}/uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
|
|
|
|
mkdir -p "$test_dir"
|
|
bin_base=${test_dir}/${TEST_NAME}
|
|
bin="$bin_base$OBJ"
|
|
src="$bin_base.d"
|
|
|
|
echo 'void main() {}' > "${src}"
|
|
|
|
# Only compile, don't link, since the Microsoft linker doesn't implicitly support long paths
|
|
$DMD -m"${MODEL}" "${DFLAGS}" -c -of"${bin}" "${src}"
|
|
|
|
rm_retry -r "${OUTPUT_BASE}"
|