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
Merge dmd upstream e2fe2687b
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
runnable
/
testbitarray.d
blob
02044603e881652cab29274f052d8143f31d4cc5
1
// PERMUTE_ARGS:
2
3
import
std
.
bitmanip
;
4
5
void
main
() {
6
BitArray a
;
7
a
.
length
=
5
;
8
foreach
(
ref bool
b
;
a
) {
9
assert
(
b
==
0
);
10
b
=
1
;
11
}
12
foreach
(
bool
b
;
a
)
13
assert
(
b
==
1
);
// FAILS, they're all 0
14
}
15
16