Skip to content

Commit ff8bbbd

Browse files
committed
---
yaml --- r: 5453 b: refs/heads/master c: 3bb7035 h: refs/heads/master i: 5451: 7f4ca6f v: v3
1 parent ead2f39 commit ff8bbbd

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 3f41563cc9591e03ac661ec1817bf105618c6629
2+
refs/heads/master: 3bb70359140062125405c6f592bd23dc34280e4b
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
use std;
2+
import std::sys::rustrt::refcount;
3+
4+
fn main() {
5+
let i = ~@1;
6+
let j = ~@2;
7+
let rc1 = refcount(*i);
8+
let j = i;
9+
let rc2 = refcount(*i);
10+
log_err #fmt("rc1: %u rc2: %u", rc1, rc2);
11+
assert rc1 + 1u == rc2;
12+
}

0 commit comments

Comments
 (0)