about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-01-31 16:54:45 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-01-31 21:43:07 -0800
commit2c8b1125804b5666d0cc0139c205a6aa0be95eaa (patch)
tree39ed3d78498d25986793e2d14b8072146270466f
parentcc6afe1ec0d3e5e9da4c0f7d0443991afe74dfaf (diff)
downloadrust-2c8b1125804b5666d0cc0139c205a6aa0be95eaa.tar.gz
rust-2c8b1125804b5666d0cc0139c205a6aa0be95eaa.zip
Un-xfail test for 7385
I've verified that it works on osx x86_64

Closes #7385
-rw-r--r--src/test/run-pass/const-vec-of-fns.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/run-pass/const-vec-of-fns.rs b/src/test/run-pass/const-vec-of-fns.rs
index fa6633121c8..45ba9f1cab5 100644
--- a/src/test/run-pass/const-vec-of-fns.rs
+++ b/src/test/run-pass/const-vec-of-fns.rs
@@ -8,9 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// xfail-test
-// FIXME: #7385: hits a codegen bug on OS X x86_64
-
 /*!
  * Try to double-check that static fns have the right size (with or
  * 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)];
 
 pub fn main() {
     for &bare_fn in bare_fns.iter() { bare_fn() }
-    for &closure in closures.iter() { (*closure)() }
+    for closure in closures.iter() {
+        let S(ref closure) = *closure;
+        (*closure)()
+    }
 }