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
/
fail98.d
blob
7541d3718c7b7f1af15b32344d781cdc88d47d41
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail98.d(17): Error: cannot implicitly convert expression `256` of type `int` to `E`
5
---
6
*/
7
8
// https://issues.dlang.org/show_bug.cgi?id=139
9
10
E
foo
(
int
index
)
11
{
12
return
index
+
256
;
13
}
14
15
enum
:
E
16
{
17
D3DTS_WORLD
=
256
,
18
D3DTS_WORLD1
,
19
D3DTS_WORLD2
,
20
D3DTS_WORLD3
21
}
22
23
enum
E
24
{
25
D3DTS_VIEW
=
2
,
26
D3DTS_PROJECTION
,
27
D3DTS_TEXTURE0
=
16
,
28
D3DTS_TEXTURE1
,
29
D3DTS_TEXTURE2
,
30
D3DTS_TEXTURE3
,
31
D3DTS_TEXTURE4
,
32
D3DTS_TEXTURE5
,
33
D3DTS_TEXTURE6
,
34
D3DTS_TEXTURE7
,
// = 23
35
D3DTS_FORCE_DWORD
=
0xffffffff
36
}