Skip to content

Commit 941545f

Browse files
fix #21605 test suite null deref in bug19652.d (#21606)
1 parent cdb9516 commit 941545f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compiler/test/runnable/bug19652.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ auto otherTest(inout ref Base block) @nogc { assert(0); }
1717
auto otherTest(inout ref A block) @nogc {}
1818

1919
void main() {
20-
B* thingie;
20+
B* thingie = new B;
2121
otherTest(*thingie);
2222
}

0 commit comments

Comments
 (0)