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
Fix memory leak in vect_analyze_loop_form
[official-gcc.git]
/
libphobos
/
testsuite
/
libphobos.betterc
/
test22336.d
blob
de0e31d76f0693bd663a578c7e99e62806022a6e
1
/*******************************************/
2
// https://issues.dlang.org/show_bug.cgi?id=22336
3
4
import
core
.
lifetime
;
5
6
struct
Foo
{
7
int
f
= -
1
;
8
@disable
this
(
this
);
9
this
(
int
x
) {
f
=
x
; }
10
@disable
this
();
11
}
12
13
extern
(
C
)
int
main
() {
14
Foo a
=
Foo
(
42
);
15
Foo b
=
move
(
a
);
16
assert
(
a
.
f
== -
1
);
17
assert
(
b
.
f
==
42
);
18
return
0
;
19
}