mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
23 lines
366 B
D
23 lines
366 B
D
/*
|
|
REQUIRED_ARGS: -w
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test20522.d(19): Error: undefined identifier `non_existent`
|
|
---
|
|
*/
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=20522
|
|
struct File
|
|
{
|
|
~this() {}
|
|
}
|
|
|
|
void main()
|
|
{
|
|
{
|
|
auto test = File(); // <- Essential
|
|
non_existent;
|
|
}
|
|
// Warning: statement is not reachable
|
|
string[] is_this_unreachable_question_mark;
|
|
}
|