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
MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail18236.d
blob
5a696f38a4ff827124939dd20dda62ead2b85587
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail18236.d(20): Error: cannot cast expression `V(12)` of type `V` to `int`
5
---
6
*/
7
8
struct
V
9
{
10
int
a
;
11
}
12
13
struct
S
14
{
15
enum
A
=
V
(
12
);
16
}
17
18
void
main
()
19
{
20
int
b
=
cast
(
int
)
S
.
A
;
21
}