summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/fail11038.d
blob: 8f39ccc51eb257536adee2dc0905567847347311 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// https://issues.dlang.org/show_bug.cgi?id=11038
/*
TEST_OUTPUT:
---
fail_compilation/fail11038.d(16): Error: `writeln` is not defined, perhaps `import std.stdio;` is needed?
---
*/

static
{
    import std.stdio;
}

void main()
{
    writeln("foo");  // compiles
}