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
c++: lambda capture and explicit object parm
[official-gcc.git]
/
libphobos
/
testsuite
/
libphobos.gc
/
issue22843.d
blob
bf6e830f59807a6fd89561b67a2a1d6dd3786ee6
1
import
core
.
memory
;
2
void
main
()
3
{
4
auto
collections
=
GC
.
profileStats
().
numCollections
;
5
// loop until we trigger a collection
6
for
(;;)
7
{
8
cast
(
void
)
GC
.
malloc
(
100_000
,
GC
.
BlkAttr
.
NO_SCAN
);
9
if
(
GC
.
profileStats
().
numCollections
==
collections
+
1
)
10
break
;
11
}
12
}