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
/
fail19897.d
blob
49df470677757191ec0a63b28c2b4a8d8097e70b
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail19897.d(12): Error: cannot implicitly convert expression `a.x` of type `const(char[0])` to `const(char)`
5
---
6
*/
7
struct
S
8
{
9
char
[
0
]
x
;
10
}
11
const
a
=
S
(
'a'
);
12
const char
c
=
a
.
x
;