Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 10ad161

Browse files
committed
add test case for special symbols that don't mangle their parents
1 parent 4305ddc commit 10ad161

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/core/demangle.d

+4-2
Original file line numberDiff line numberDiff line change
@@ -2305,14 +2305,16 @@ version(unittest)
23052305
"pure nothrow ref @nogc @safe std.typecons.Typedef!(std.typecons.__unittestL6513_208().MyClass, null, null).Typedef "
23062306
~"std.typecons.Typedef!(std.typecons.__unittestL6513_208().MyClass, null, null).Typedef.__ctor(std.typecons.__unittestL6513_208().MyClass)"],
23072307
["_D3std6getopt__TQ1ATAyaTDFNaNbNiNfQ1eZvTQ2aTDQ2aZQ4DFNfKAQ3hQ4aQ3jQ4gQ2fZSQL7C12GetoptResult",
2308-
"@safe std.getopt.GetoptResult std.getopt.getopt!(immutable(char)[], pure nothrow @nogc @safe void "
2308+
"@safe std.getopt.GetoptResult std.getopt.getopt!(immutable(char)[], pure nothrow @nogc @safe void "
23092309
~"delegate(immutable(char)[]), immutable(char)[], pure nothrow @nogc @safe void delegate(immutable(char)[]))."
23102310
~"getopt(ref immutable(char)[][], immutable(char)[], pure nothrow @nogc @safe void delegate(immutable(char)[]), "
23112311
~"immutable(char)[], pure nothrow @nogc @safe void delegate(immutable(char)[]))"],
23122312
["_D3std5regex8internal9kickstart__T7ShiftOrTaZQ1B11ShiftThread__T3setS_DQQ6J10setInvMaskMFNaNbNiNfkkZvZQ3IMFNaNfwZv",
23132313
"pure @safe void std.regex.internal.kickstart.ShiftOr!(char).ShiftOr.ShiftThread.set!(std.regex.internal.kickstart.ShiftOr!(char).ShiftOr.ShiftThread.setInvMask(uint, uint)).set(dchar)"],
2314-
["_D3std5stdio4File__T8lockImplX10LockFileExTykZQ2GMFmmykZi",
2314+
["_D3std5stdio4File__T8lockImplX10LockFileExTykZQ2GMFmmykZi", // C function as template alias parameter
23152315
"int std.stdio.File.lockImpl!(LockFileEx, immutable(uint)).lockImpl(ulong, ulong, immutable(uint))"],
2316+
["_D3std8typecons__T11dynamicCastTCQL3B10StructuralZ__TQ3FTC6ObjectZQ4IFNaNbNeNgCQ2BZQ5b", // Object mangled without module
2317+
"pure nothrow @trusted std.typecons.Structural std.typecons.dynamicCast!(std.typecons.Structural).dynamicCast!(Object).dynamicCast(inout(Object))"],
23162318
];
23172319

23182320

0 commit comments

Comments
 (0)