Skip to content

Commit 2c8b112

Browse files
committed
Un-xfail test for 7385
I've verified that it works on osx x86_64 Closes #7385
1 parent cc6afe1 commit 2c8b112

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/run-pass/const-vec-of-fns.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-test
12-
// FIXME: #7385: hits a codegen bug on OS X x86_64
13-
1411
/*!
1512
* Try to double-check that static fns have the right size (with or
1613
* without dummy env ptr, as appropriate) by iterating a size-2 array.
@@ -25,5 +22,8 @@ static closures: &'static [S<'static>] = &[S(f), S(f)];
2522

2623
pub fn main() {
2724
for &bare_fn in bare_fns.iter() { bare_fn() }
28-
for &closure in closures.iter() { (*closure)() }
25+
for closure in closures.iter() {
26+
let S(ref closure) = *closure;
27+
(*closure)()
28+
}
2929
}

0 commit comments

Comments
 (0)