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
/
fail18994.d
blob
14935a726716db55c909efeb14bb4e0eb53e6268
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail18994.d(19): Error: struct `fail18994.Type1` is not copyable because it has a disabled postblit
5
---
6
*/
7
struct
Type2
8
{
9
int
opApply
(
int delegate
(
ref
Type1
)) {
return
0
; }
10
}
11
12
struct
Type1
13
{
14
@disable
this
(
this
);
15
}
16
17
void
test
()
18
{
19
foreach
(
b
;
Type2
()) {}
20
}