File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
branches/snap-stage3/src/test/run-pass Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: f149ea0c689e903c2db1f2aee45a9fb60f168374
4
+ refs/heads/snap-stage3: 0b1675da16fc95ea3fc7a90632de088d6d7b99f9
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change
1
+ // xfail-test
2
+ use std;
3
+ import std:: arena;
4
+ import std:: arena:: arena;
5
+
6
+ enum hold { s( str ) }
7
+
8
+ fn init ( ar : & a. arena:: arena , str : str ) -> & a. hold {
9
+ new ( * ar) s( str)
10
+ }
11
+
12
+ fn main ( args : [ str ] ) {
13
+ let ar = arena:: arena ( ) ;
14
+ let leak = init ( & ar, args[ 0 ] ) ;
15
+ alt * leak {
16
+ s( astr) {
17
+ io:: println ( #fmt ( "%?" , astr) ) ;
18
+ }
19
+ } ;
20
+ }
You can’t perform that action at this time.
0 commit comments