repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail11038.d
blob
331c3fc5892d12db1afbe033f33043608fa981bc
1
// https://issues.dlang.org/show_bug.cgi?id=11038
2
/*
3
TEST_OUTPUT:
4
---
5
fail_compilation/fail11038.d(16): Error: `printf` is not defined, perhaps `import core.stdc.stdio;` is needed?
6
---
7
*/
8
9
static
10
{
11
import
core
.
stdc
.
stdio
;
12
}
13
14
void
main
()
15
{
16
printf
(
"foo"
);
// compiles
17
}