Skip to content

Commit d0996c9

Browse files
committed
Minimally adapt 2 new compiler tests for LDC
1 parent 9b2a80d commit d0996c9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tests/dmd/compilable/test21359.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ $DMD -c -m${MODEL} -allinst -of${objfile} ${EXTRA_FILES}/${TEST_NAME}a.d -I${EXT
55

66
# This test is brittle and might break in the future.
77
# For now, ensure a specific AA TypeInfo isn't defined multiple times, as happened with DMD v2.111.0.
8+
9+
# LDC: different TypeInfo emission strategy, test doesn't apply
10+
exit 0
11+
812
mangled_sym='_D14TypeInfo_HiAya6__initZ'
913
num_typeinfo_syms=$(nm --defined-only ${objfile} | grep -F ${mangled_sym} | wc -l)
1014
if [[ "${num_typeinfo_syms}" -ne 1 ]]; then

tests/dmd/fail_compilation/fail19103.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ fail_compilation/fail19103.d(26): class `C` defined here
66
fail_compilation/fail19103.d(16): Error: no property `puts` for `s1` of type `fail19103.S1`
77
fail_compilation/fail19103.d(30): struct `S1` defined here
88
fail_compilation/fail19103.d(18): Error: no property `puts` for type `S2`
9-
$p:druntime/import/core/stdc/stdio.d$($n$): did you mean `core.stdc.stdio.puts`?
9+
$p:/core/stdc/stdio.d$($n$): did you mean `core.stdc.stdio.puts`?
1010
---
1111
*/
1212
void main()

0 commit comments

Comments
 (0)